SC, Rev,and RB speed test
dsc at swcp.com
Thu Apr 15 03:54:08 CDT 2004
On Thursday, April 15, 2004, at 02:25 AM, Brian Yennie wrote:
> Ah hah! Try these two scripts. The timed portion of the first
> SHOULDN'T run any faster than the second, but it does. The "contains"
> operator should be bailing as soon as it matches "zoom" in the first 4
> characters, but it's clearly scanning the entire text. Tsk tsk...
I get 0 and 676.
This is the 2.5 meg string. I changed my tests to look for the first
four chars in a 2.5 meg string and it took 4553 microseconds.
OK, so even my tests see it with a very long string. I wonder if this
even gets the right answer.
More information about the use-livecode