This chain of blog posts https://itnext.io/using-java-to-read-really-really-large-files-a6f8a3f44649 … https://stuartmarks.wordpress.com/2019/01/11/processing-large-files-in-java/ … https://marcellanz.com/post/file-read-challenge/ … lead me to write this https://boyter.org/posts/file-read-challange/ … where it turns out none of the solutions are actually optimal. Fun to implement Go channels in Java though.
-
-
Interesting. I just assumed it did because of the similar runtime. Never read it’s code. Perhaps is time to code spelunk again!
-
On Linux, you don't even need to read the code. If you just do `strace wc -l`, you can see all the read syscalls. Then compare that with `strace rg -v . itcont.txt --mmap` and you'll see the difference immediately.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.