Tie::File does not work well on huge files.
Indeed. It memorizes the byte position of the start of every line it has encountered in order to jump to a specific line quickly. This adds up, and that functionality isn't needed here (since there's no need to jump back).
Contrary to what the documentation implies, this memory usage cannot be limited.
In reply to Re^2: Speed and memory issue with large files
by ikegami
in thread Speed and memory issue with large files
by firmament
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |