News for hackers. Stuff that matters.
Re:Ripgrep 11 Released by burntsushi on Monday April 15, 2019 @10:51PM (#19670748)
> I believe ag (the silver searcher) has also seen considerable performance improvements since 2016.

Do you know what they are? I haven't noticed them, although it has been a while since I've rigorously benchmarked it. From looking at the source code, I don't think much has changed. e.g., it appears to still be using memory maps on Linux when searching large directories.

Re:Ripgrep 11 Released by BeeOnRope on Monday April 15, 2019 @11:42PM (#19670964)
Out of curiosity, is there a better approach than memory maps?
Re:Ripgrep 11 Released by shaklee3 on Tuesday April 16, 2019 @01:12AM (#19671286)
The author goes over that here:

https://blog.burntsushi.net/ripgrep/

Re:Ripgrep 11 Released by hungnmsu on Tuesday April 16, 2019 @07:42AM (#19672787)
Using mmap is generally slower than reading chunk of data and mmap does not work well if you have to handle huge files with several GBs of text data. You can find performance benchmark results and a detail analysis from @burntsushi blog and Lemire's blog post (https://lemire.me/blog/2012/06/26/which-is-fastest-read-frea...).