Performance
Built for Speed
Section titled “Built for Speed”promptext is optimized for large codebases with:
- Concurrent Processing — Parallel file handling
- Smart Caching — Reduced redundant operations
- Binary Detection — Fast exclusion of non-text files
- Efficient Filtering — Skip irrelevant files early
Benchmarks
Section titled “Benchmarks”Project Size | Processing Time |
---|---|
Small (<100 files) | <1 second |
Medium (100-1K files) | 1-3 seconds |
Large (1K+ files) | 3-10 seconds |
Optimization Tips
Section titled “Optimization Tips”Filter early:
promptext -e .go,.js # Process only specific types
Exclude heavy directories:
promptext -x "node_modules/,vendor/,dist/"
Use info mode for quick analysis:
promptext -i # Skip full content processing
Leverage gitignore:
promptext -g=true # Respect .gitignore patterns (default)
Debug Mode
Section titled “Debug Mode”Monitor performance with debug logging:
promptext -D # Show timing details
Example output:
[DEBUG] File filtering: 45ms[DEBUG] Binary detection: 120ms[DEBUG] Token counting: 230ms[DEBUG] Total processing: 395ms
Memory Usage
Section titled “Memory Usage”Efficient memory management:
- Stream Processing — No large file buffers
- Incremental Parsing — Process files as needed
- Cache Management — Automatic cleanup of old entries
For memory-constrained environments, use info mode to minimize memory usage.