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: "Theodore H.Smith" <delete at elfdata dot com>
Date: Mon, 28 Feb 2005 21:33:33 +0000
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>

On 28 Feb 2005, at 21:22, Theodore H. Smith wrote:

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.

Just to make it clear, the reason I doubt that mine is 100x faster, is because countfields doesn't have much room to go wrong. I mean, a simple byte counting loop is hard to beat, and easy to code.

I've got a byte counter in ElfDataCharSet.Count, although that actually tests for anything in a certain charset not just one byte.

Also, even lets say mine were 100x faster (Which is possible if RS didn't code theirs efficiently), this is such an easy fix for RS, I wouldn't even really think it worth mentioning.

Gains which can disappear tomorrow are sandy ground to build a house on...

--
   Theodore H. Smith - www.elfdata.com/plugin/ - www.elfdata.com/forum/
   ElfData: Industrial strength string processing, made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
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>