Krep: Blazing Fast String Search Utility

2025-04-16
Krep: Blazing Fast String Search Utility

Krep is a performance-optimized string search utility designed for maximum throughput and efficiency when processing large files and directories. It utilizes multiple search algorithms and SIMD acceleration (when available), prioritizing speed and simplicity. Krep automatically selects the optimal algorithm, supports multi-threaded searching, memory-mapped I/O, regular expressions, and recursive directory searches, while skipping binary files and common non-code directories. Benchmarks show Krep is approximately 41.5x faster than grep and slightly faster than ripgrep.

Development string search