realbasic-nug
[Top] [All Lists]

Re: Performance and faster idioms

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Performance and faster idioms
From: Ronald Vogelaar <enter at rovosoft dot com>
Date: Mon, 28 Feb 2005 22:33:25 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20050228210133 dot DCDB7769625 at lists dot realsoftware dot com> <b1bb14210eba2a3e4e9f1e7989481456 at elfdata dot com>
Theodore H.Smith wrote:



Interesting sidenote: just for laughs I also tested ElfDataFields from
Theo's ElfData plugin. It is on average 100 times faster than
countfields. that's 10,000% faster folks.


Faster than countfields? I'd actually doubt it myself, to be honest. I'll probably test this at somepoint, however. Just to make sure. It may be that this result you got only applies in certain cases.

Come, come, since when have you become so modest ;-)))


I suppose you did this:

while fi.MoveNext
    Count = Count + 1
wend

Yes, that's what I did, using a string that contains 100 fields with " " as separator in a for next loop that runs 1000 times. So, a 'real life' test ;-).


By the way, your "FastCountFields" could be implemented using my plugin... no problem there. You could even make it use a string param if you like. I think one operator_convert won't hurt when its not in the hot loop.

Not in RBScript it can't. Can it?

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>

<Prev in Thread] Current Thread [Next in Thread>