4 ms·
I put together some hacky shell scripts as a poc for grep. I wouldn’t use it for anything other than a test of concept. https://github.com/gpapilion/pgrep http
by gpapilion 6y ago
I put together some hacky shell scripts as a poc for grep. I wouldn’t use it for anything other than a test of concept.
https://github.com/gpapilion/pgrep https://github.com/gpapilion/pgrep
So in order to make it work I used temp files to paper over some correctness and ordering issues.
So the initial tests showed a 2-3x speed up on a crappy laptop ssd. Of course my usage of temp files made this much slower on multiple runs because of the page cache where traditional grep beat the approach I took because of memory speed. It wasn’t able to beat pre spout files though.
Most of these tools were designed expecting disks to roughly behave serially. With Ssds and raid devices you can achieve more parallelism than was imagined in the 70s 80s and 90s.
I think it’s an area that is ripe for more innovation.