Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Performance

AntiSlop uses tree-sitter AST parsing for accurate detection. Regex-only mode is ~10x faster.

LanguageModeTimeThroughput
PythonAST3.89 ms392 KiB/s
JavaScriptAST1.72 ms776 KiB/s
TypeScriptAST4.96 ms378 KiB/s
GoAST1.28 ms1.25 MiB/s
RustAST3.33 ms606 KiB/s
PythonRegex385 µs
RustRegex384 µs

Scaling:

LinesTimethroughput
10,00075.6 ms1.9 MiB/s
50,000382 ms1.9 MiB/s

Benchmarks run on standard laptop hardware (Linux x86_64). Run cargo bench to reproduce.