in reply to RE: RE: RE (tilly) 2 (blame): File reading efficiency and other surly remarks
in thread File reading efficiency and other surly remarks
What happens in your chunk code with the last line? Which is more code? And when you are doing fixing that you may still be twice as fast but with quite a bit more (and harder to read) code. Going forward that is more to maintain.
I would strongly argue against this optimization (which I think might well give different results on different operating systems) until after your system is built and performance is known to be a problem.
One note though. The IO* modules generally have significant overhead and I don't recommend using them.
EDIT
Another bug. You used split in the chunk
method without the third argument. Should your block land
at the start of a paragraph, you would incorrectly lose
lines!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE (tilly) 5: File reading efficiency and other surly remarks
by lhoward (Vicar) on Aug 26, 2000 at 21:17 UTC | |
by tilly (Archbishop) on Aug 26, 2000 at 21:45 UTC | |
by lhoward (Vicar) on Aug 26, 2000 at 23:36 UTC |