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:57:48 +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> <42238E25 dot 4050507 at rovosoft dot com>


Theodore H.Smith wrote:


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.



In the context you mean? Like:
FastCountFields(text as string, txtsep as string) As integer
dim i as integer
dim edcf as ElfDataFields

edcf = new ElfDatFields(text.ElfData, txtsep.ElfData)

while edcf.movenext
i=i+1
wend
return i

Yep, that would work.

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>