Revolution back to HyperCard
Timothy Miller
gandalf at doctorTimothyMiller.com
Sun Oct 16 21:12:34 EDT 2005
Sorry, Richard, I probably don't completely understand your question.
I'd guess you were once a HC user, but maybe not. SS stands for
searchscript. It was a script that shipped with hyperCard, in the
home stack. It was invoked by typing SS into the msg box. It searched
for a string in every script in the top stack.
You asked about "each of these scripts." That's the part of your
question I didn't understand.
FWIW, I was comparing the speed of Rev's Find stack, searching for a
string in any script in the top stack versus hyperCard's SearchScript
doing the same job in a similar stack, in classic mode. But you
probably understood that part.
Beyond that, I once wrote a test script comparing the milliseconds at
beginning and end of script, the "find" command in a repeat loop, to
find every instance of a string in any field of a rather large stack.
I compared the elapsed time to the time Rev's "Find" stack took to do
the same job, in the same stack, searching for field text only. I
reported the whole thing on the list 2 or 3 months ago.
As I recall, the "find" command was 59 times faster than the
field-text-only find, using Rev's "Find" stack. It was easy to
calculate because the script took less than two seconds, whereas the
"Find" stack needed more than a minute to do the same job.
Maybe that's what you were asking about. Not sure.
Cheers,
Tim
>Timothy Miller wrote:
>>Regarding hyperCard's SS (searchScript) I just did a quick test.
>>You're right about searching a stack's scripts. I got 150 hits in a
>>few seconds with Rev's find stack. That is indeed faster than SS,
>>though SS was always fast enough.
>>
>>OTOH, Rev's find stack took 90 seconds to find 43 hits in a
>>field-text-only search. I previously reported the same search is 59
>>times faster with a simple script using the "find" command. If I do
>>a field text search using the "find" command in the msg box,
>>hitting the return key repeatedly, I can find all 43 hits in less
>>than ten seconds -- pretty much as fast as I can hit the return key.
>
>What does each of these scripts do?
>
>--
> Richard Gaskin
> Managing Editor, revJournal
> _______________________________________________________
> Rev tips, tutorials and more: http://www.revJournal.com
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list