in reply to Re^3: convert tags to punctuation
in thread convert tags to punctuation
It is nearly impossible to guess what will or will not make a Perl program faster. The usual advice is to profile your program. Only work on those parts which are using the most time. Use benchmark to measure possible improvement. In your case, I/O is probably taking much longer than processing. Slurping the entire file into memory is probably not an option. Reading the file in large blocks may help, but it is not easy to get right. I recommend against any optimization unless it is absolutely necessary.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: convert tags to punctuation
by Anonymous Monk on Jan 16, 2021 at 17:26 UTC | |
by haukex (Archbishop) on Jan 16, 2021 at 18:07 UTC |