On Dec 08, 2006, at 3:48 PM, Kem Tekinay wrote:
On 12/8/06 5:09 PM, Daniel L. Taylor at [EMAIL PROTECTED]
wrote:
* 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."
As for the I/O issue, I agree, but I was trying to mimic the perl
code, and
I had to use no special buffering in perl. In fact, I would expect the
TextOutputStream to offer its own buffering to avoid the I/O issues
you
mentioned.
I'd suspect the OS is doing a lot of I/O buffering for the Perl code
_______________________________________________
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>