kazoe-0.1.5 is not a library.
kazoe
Fast wc replacement.
Command: kz
Install
Or from source:
Performance
1GB text file benchmarks:
Word count: 21x faster (48ms vs 1.0s)
All counts: 16x faster (63ms vs 1.0s)
Pattern match: 90x faster (32ms vs 2.9s)
Line count: 1.7x faster (32ms vs 56ms)
Multi-file: 23x faster (86ms vs 2.0s)
- Files < 512KB: sequential, similar to wc
- Files > 1GB: 15-90x faster
Usage
|
Options
-l, --lines line count
-w, --words word count
-c, --bytes byte count
-m, --chars character count (UTF-8)
-L, --max-line-length longest line
-r, --recursive recurse directories
-v, --verbose show warnings
--unique unique word count
--pattern <PAT> count pattern occurrences
--stats show statistics (mean, median, std dev)
--histogram line length distribution
--json JSON output
--timing show processing time
--progress show progress
--fast skip UTF-8 validation
--code skip comments (// /* # -- """)
--markdown skip code blocks
--exclude <PAT> exclude files matching pattern
--encoding <ENC> force encoding (auto-detects otherwise)
--files0-from <FILE> read null-terminated filenames
--generate-completion shell completions (bash/zsh/fish/powershell)
Examples
# Recursive with exclusions
# Statistics
# JSON output with timing
# Code lines only (skip comments)
# Markdown text only (skip code blocks)
# Force encoding
# Progress for large operations
Shell Completions
Implementation
- Parallel processing (Rayon, 1MB chunks)
- Memory-mapped I/O
- SIMD pattern matching (memchr)
- UTF-8 aware with proper chunk boundaries
- Unicode whitespace detection
- CRLF normalization
- Encoding detection and conversion
- Binary file detection
License
MIT