Performance Issues
Speed up Memoria in large repositories with 100k+ files. Configure caching, adjust thresholds, and optimize git operations.
The Problem
Memoria runs slowly or times out in repositories with many files or long git history.
Common Causes
- Repository has many files (100k+)
- Long git history (years of commits)
- No .gitignore for build artifacts
- Analyzing unnecessary directories
Solutions
Configure Ignore Patterns
Create a .memoria.json to exclude directories that don't need analysis.
{
"ignore": [
"node_modules",
"dist",
"build",
".git",
"*.min.js",
"vendor"
]
}Limit History Depth
Reduce the number of commits analyzed for faster results.
{
"maxCommits": 500,
"historyDays": 90
}Enable Caching
Memoria caches results by default. Ensure the cache directory is writable.
{
"cache": {
"enabled": true,
"ttl": 3600
}
}Run Analysis Off-Peak
For very large repos, run Memoria's analysis during low-activity periods and use cached results.