Story Details

  • Show HN: Krep a High-Performance String Search Utility Written in C

    Posted: 2025-03-11 16:12:43

    Krep is a fast string search utility written in C, designed for performance-sensitive tasks. It utilizes SIMD instructions and optimized algorithms to achieve speeds significantly faster than grep and other similar tools, especially when searching large files or codebases. Krep supports regular expressions via PCRE2, various output formats including JSON and CSV, and features like ignoring binary files and following symbolic links. The project is open-source and aims to provide a robust and efficient alternative for command-line text searching.

    Summary of Comments ( 44 )
    https://news.ycombinator.com/item?id=43333946

    HN users generally praised Krep for its speed and clean implementation. Several commenters compared it favorably to other popular search tools like ripgrep and grep, with some noting its superior performance in specific scenarios. One user suggested incorporating SIMD instructions for potential further speed improvements. Discussion also touched on the nuances of benchmarking and the importance of real-world test cases, with one commenter sharing their own benchmark results where krep excelled. A few users inquired about specific features, like support for PCRE (Perl Compatible Regular Expressions) or Unicode character classes. Overall, the reception was positive, acknowledging krep as a promising tool for efficient string searching.