Considering puzzle
Considering puzzle
- Subject: Considering puzzle
- From: Nigel Garvey <email@hidden>
- Date: Fri, 23 Aug 2002 01:11:11 +0100
While working on a script recently, I found that string comparisons
('contains', 'begins with', etc.) run faster when 'considering case' than
when 'ignoring case'. I assume this is because the strings' characters
don't need to be converted to a common case for the comparisons.
Someone who tried the script for me pointed out that there's a 32767
character limit on this sort of comparison. If either of the strings has
32768 (32K) or more characters, then the one is always reported not to
contain the other. Again, I'm happy vaguely to assume that some 32K limit
applies, similar to the one on Script Editor.
Tonight, I've discovered that this limit doesn't apply with 'considering
case' - and that's totally puzzling. Does anyone know what this limit's
about, why it applies when ignoring case, and why it doesn't when
considering it?
AS's 1.6 and 1.3.7
NG
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.