On Feb 12, 2006, at 2:19 AM, Ronald Vogelaar wrote:


----- Original Message ----- From: "Theodore H. Smith" <[EMAIL PROTECTED]>

Besides, while the raw speed of appending a string maybe the simplest thing to understand and compare, my FastString class has more advantages than simply being used as a buffer. It has a long history of use, and from that history it has gained many tweaks and features making it very handy and simple to use.

I concur. A couple of months ago, I wrote a FastString replacement in pure RB (I called it SpeedString), that, in the end, was just as fast as Theo's FastString. Still, I ended up continuing to use FastString for exactly the reasons Theo mentions.

I too am suspicious of the statement about Join, but perhaps I'm overlooking something. Charles, could you share a simple code example?

Sure. At <http://www.declaresub.com/ElfDataJoinProject.zip> is a project file that requires Rb2006 (and Theo's plugin), and the compiled MacOS application. On my machine, an aging 12" 867 mhz Powerbook, Join concatenates the elements of a 100000 element string array in 5-6 ticks; performing the same operation using a FastString object takes 9-10 ticks.

--------------
Charles Yeomans

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

Reply via email to