Perhaps this is a silly question, but I have to ask it.
Why do you need to speed up this process? Don't you have to get it right once only? After that (I presume) you would be done.
If you are wondering how to do your testing without going through the whole file, I would cut out a 1000 line chunk of the file (say) and use that for my testing. Once most everything looks good, run your script against the whole file.
As far as I know, some very smart people have worked on getting Perl's "Read in a line and process it" code to run absolutely as fast as possible -- so I don't think tinkering with the buffering is going to have a significant impact on the speed.
How long does it take to run the entire file? Can you get access to a faster machine, or one with more memory?
--t. alexIn reply to Re: Formatting a large number of records
by talexb
in thread Formatting a large number of records
by elbow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |