At 9:50 PM +0100 2/28/05, Ronald Vogelaar wrote:
On OSX I found it on average to be about 25% faster than
CountFields, on Windows(XP) however, it is on average 300% faster.
Yes, because you're using the binary version of InStr instead of the
text-based one.
The StringUtils module has this and other functions which might
interest you: <http://www.strout.net/info/coding/rb/>.
Interesting sidenote: just for laughs I also tested ElfDataFields
from Theo's ElfData plugin. It is on average 100 times faster than
countfields.
But it's not doing the same thing either (I suspect that it's also
doing a binary search, though I haven't looked into it in quite a
while).
--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|