Incremental Analysis¶
Algorilla caches analysis results per file using content hashing. On subsequent runs, only files whose content has changed are re-analyzed.
How It Works¶
- First run: all files are parsed and analyzed. Results are cached to
.algorilla/analysis-cache.json - Subsequent runs: file content hashes are compared. Only changed files are re-parsed
- Cached findings from unchanged files are included in the output without re-analysis
Cache Location¶
The cache is stored at .algorilla/analysis-cache.json relative to the scan root directory.
Disabling the Cache¶
Performance Impact¶
Typical improvement on a ~1500-file codebase:
| Run | Time |
|---|---|
| First (no cache) | ~1.4s |
| Second (cached) | ~0.1s |
Cache Invalidation¶
The cache is automatically invalidated when:
- A file's content changes (SHA-256 hash mismatch)
- The cache file is corrupted or from an incompatible version
--no-cacheis specified
To manually clear the cache, delete the .algorilla/ directory.