1 post with tag memchr
mergelog-rs: Rewriting a Year-2000 C Tool in Rust — and Making It 2.26× Faster
A Rust rewrite of mergelog 4.5, a C tool from 2000 that merges Apache log files chronologically. Six optimizations — a k-way heap merge, a hand-rolled CLF parser, String buffer reuse, mimalloc, 4 MiB read buffers with SIMD newline search, and zstd support — took the Rust binary from slower than the original to 2.26× faster.
· 9 minutes reading time