On Dec 09, 2006, at 1:01 AM, Kem Tekinay wrote:
What the last two have in common is that they replace RB functions
(IsNumeric, ReplaceAll), and that is where the bottleneck is.
Without these
calls, the RB program is slightly faster than the perl version.
With either
of these, the RB program slows down, and with both, slows down
dramatically.
The bottom line: Function calls slow down RB significantly, but,
other than
the simplest applications, there is no way to avoid them. By
definition,
until this is "fixed", RB programs will run slower than they can, and
probably slower than other, better optimized, languages.
Did you try ReplaceALLB so there's no consideration of encodings ?
The perl code would not handle anything but ascii either
_______________________________________________
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>