Repolode
davidesantangelo

davidesantangelo/krep

A fast, multi-threaded command-line string search tool that is grep-compatible, with SIMD acceleration and regex support.

代替できる製品:grep

スター
529
フォーク
26
未解決の Issue
6
最終コミット
先月

これは何?

krep is a command-line text search utility written in C, designed as a faster alternative to grep for large-scale pattern matching. It selects among several search algorithms (Boyer-Moore, KMP, Two-Way, Shift-Or, Aho-Corasick) depending on the pattern, and uses SIMD instructions (SSE2, AVX2, AVX-512, NEON) together with memory-mapped I/O to speed up scanning.

The tool supports fixed strings by default, POSIX regular expressions, and multiple patterns supplied via repeated -e flags or a pattern file. It can search files, directories recursively with glob include and exclude rules and .gitignore handling, or standard input. Common grep options such as context lines, line numbers, counts, and file listings are available, along with JSON Lines output for scripting.

krep runs on Linux, macOS, and BSD systems with a C compiler and pthread. Builds can be tuned with PORTABLE or NATIVE make flags to balance portability and CPU-specific vector support.

主な機能

  • 01Automatically selects among several string search algorithms based on the pattern
  • 02SIMD acceleration and memory-mapped I/O for fast scanning
  • 03Multi-threaded search across CPU cores
  • 04POSIX regex support and multiple pattern search
  • 05Recursive directory search with globs, exclusions, and .gitignore support
  • 06grep-compatible options plus JSON Lines output

ユースケース

  • Searching large source trees or log directories for many patterns at once
  • Scripting text searches that need structured JSON Lines output
  • Replacing grep in performance-sensitive build or CI pipelines
  • Quick existence checks in shell scripts using quiet mode

トピック

よくある質問

krep とは?
A fast, multi-threaded command-line string search tool that is grep-compatible, with SIMD acceleration and regex support. krep is a command-line text search utility written in C, designed as a faster alternative to grep for large-scale pattern matching. It selects among several search algorithms (Boyer-Moore, KMP, Two-Way, Shift-Or, Aho-Corasick) depending on the pattern, and uses SIMD instructions (SSE2, AVX2, AVX-512, NEON) together with memory-mapped I/O to speed up scanning.
krep は無料で使えますか?ライセンスは?
krep は BSD-2-Clause ライセンスのオープンソースです。商用製品で使う前にライセンス条件を確認してください。
krep は今もメンテナンスされていますか?
半年以内に更新あり。krep の最終コミットは 2026年9月16日 です。
krep は何に使えますか?
Searching large source trees or log directories for many patterns at once Scripting text searches that need structured JSON Lines output Replacing grep in performance-sensitive build or CI pipelines Quick existence checks in shell scripts using quiet mode
krep はどこで入手できますか?
ソースコードとインストール手順は GitHub にあります:https://github.com/davidesantangelo/krep

概要はプロジェクトの README をもとに AI が生成しています。GitHub の数値は毎日更新されます。

関連プロジェクト