Joseph J. Strout wrote:
At 11:18 PM +0100 2/28/05, Ronald Vogelaar wrote:
part of my code, except for stuff like countfields. I guess because
I've heard so many times pple whining about the slowness of nthfield
and countfields that I took it for granted, which is not like me at
all ;-)
There's nothing slow about CountFields except that it's a smart
lexical search rather than a dumb binary one. The same is true for
NthField, unless you're calling it repeatedly to get many fields from
the same line; that's wasteful since it starts the search over from
the beginning each time (as it must, given the function API). But
it's for cases like that, that we have the Split function. Usually,
when someone complains that NthField is slow, they really should be
using Split instead.
Which reminds me, did you read my earlier posting today about RBScript?
Split doesn't work in RBScript. Is it not meant to work in RBScript?
(The StringUtils module includes a SplitB, by the way.)
I saw. I'll be spending some time on the module tomorrow.
Ronald Vogelaar
http://www.rovosoft.com
_______________________________________________
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>
|