SC, Rev,and RB speed test

Dar Scott dsc at swcp.com
Thu Apr 15 04:39:32 EDT 2004


On Thursday, April 15, 2004, at 02:19 AM, Brian Yennie wrote:

> It seems to have to do with the size of the string searched, but it 
> takes a bit more to trigger it.

I used my timer to test finding a match in the 10th char.

get offset("0",thousandChars) <> 0  -- 1.15 microseconds
get thousandChars contains "0"      -- 1.12 microseconds

So, I don't think it is a problem of continuing after finding a match, 
but...

For yours, I get...
14, 121   for  1,000 repeats to build the string
14, 2457  for 10,000 repeats

Now that is weird.

Dar Scott




More information about the use-livecode mailing list