3 ms·
As far as I see, ripgrep isn't small - a multimegabyte heavily compressed package.
by GoblinSlayer 6y ago
As far as I see, ripgrep isn't small - a multimegabyte heavily compressed package.
- drran 6y ago$ ldd /usr/bin/grep linux-vdso.so.1 (0x00007ffed59ab000) libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f387c8cf000) libc.so.6 => /lib64/libc.so.6 (0x00007f387c705000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f387c6e3000) /lib64/ld-linux-x86-64.so.2 (0x00007f387c9aa000) $ du -ch /usr/bin/grep `readlink -f /lib64/libpcre.so.1` `readlink -f /lib64/libc.so.6` `readlink -f /lib64/libpthread.so.0` 168K /usr/bin/grep 484K /usr/lib64/libpcre.so.1.2.12 3.1M /usr/lib64/libc-2.31.so 312K /usr/lib64/libpthread-2.31.so 4.0M total
- GoblinSlayer 6y agoI mean https://github.com/BurntSushi/ripgrep/releases/download/12.1.1/ripgrep_12.1.1_amd64.deb https://github.com/BurntSushi/ripgrep/releases/download/12.1... - /usr/bin/rg 5mb executable. And I think it was something about 20mb in first release.
- burntsushi 6y agoOnly because I didn't bother to strip the binary. The binary you're linking to is statically linked, which includes PCRE2 and Rust's regex engine, among other things. The GP's point is that if you look at all of grep's pieces, it comes in at a similar size. Overall, I don't even know what the point of this kind of questioning even is.