6 ms·
It provided the easiest possible case to grep: a simple literal. So all grep needs to do is substring search. And in turn it's accelerated by use of memchr. And
by burntsushi 3y ago
It provided the easiest possible case to grep: a simple literal. So all grep needs to do is substring search. And in turn it's accelerated by use of memchr. And that in turn it's written in assembly using AVX2 vector instructions, courtesy of GNU libc.
- littlestymaar 3y ago(For those unaware, burntsushi is the author of ripgrep)
- xeonmc 3y agosource? (edit: was supposed to be a pun)
- paraselene_ 3y agoThis should suffice? https://github.com/BurntSushi/ripgrep https://github.com/BurntSushi/ripgrep
- deleted 3y ago[deleted]