That's strange, you should be able to stream the file right into a tiny perl executable at the same speed as the bottlenecking hardware. The kernel will take care of all the logistics. You're probably trying to do too much explicitly. Just use a pipe. Perl should be done before Jit completes.
gerikson|2 years ago
1B lines is a lot, and Java ain't a slouch.
lessbergstein|2 years ago
https://www.perl.com/pub/2003/11/21/slurp.html/#:~:text=Anot....
unknown|2 years ago
[deleted]
gerikson|2 years ago
lessbergstein|2 years ago
This is really a small, trivial task for a perl script. Even with a billion lines this is nothing for a modern cpu and perl.