* You're reading/writing data repeatedly in small chunks. Horrible use of
disk I/O. <snip> This is why your second implementation was more than 2x
faster and
almost as fast as Perl.

I don't think I'd call a 60% difference "almost as fast."

Well...in terms of seconds, 15 vs. 24 doesn't seem like a big deal, even
though it is if you're trying to go as fast as possible.

Incidentally, what machine are you testing on? 100 MB test file, right? How
many lines in your test file, and how much RAM in your machine?

Reason I ask: my G5 turns in two minutes with your function on a 100 MB test
file. My PC just chokes for some reason by comparison, on either of the
three RB routines I've tried including yours. It ends up at 4-6 minutes. I
occasionally see a function, RB or C, where my Mac wins, but typically my PC
cleans house being a newer machine (Athlon X2), so this challenge has me
curious.

TextSpresso turns in 16.5 seconds on my 100 MB test file on the PC, and 32
seconds on the Mac. But that's not exactly RB since the filtering engine is
C.

Daniel L. Taylor
Taylor Design
Computer Consulting & Software Development
[EMAIL PROTECTED]
www.taylor-design.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>

Reply via email to