Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Optimize Cursor IDE performance: reduce memory usage, speed up indexing, tune AI features, and manage extensions for large codebases. Triggers on "cursor performance", "cursor slow", "cursor optimization", "cursor memory", "speed up cursor", "cursor lag".
.claude/skills/jeremylongshore-cursor-performance-tuning/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 77% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 53% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 41% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 40% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 55% | 0% |
Improve Cursor responsiveness by measuring indexing scope, resource use, extension load, and network conditions while preserving required workspace and data controls.
.cursorignore strategy; do not expose excluded files to gain speed.| Condition | Safe response | |---|---| | Cache clear does not help | Restore settings and investigate extension/indexing scope rather than repeating deletion. | | Performance requires policy exception | Keep policy intact and escalate for a documented decision. | | Network latency is the cause | Use approved network troubleshooting; do not route code through an unapproved service. |
For a slow monorepo, measure indexing time, add generated artifacts to the existing reviewed ignore rules, close inactive workspace roots, and measure again. Keep the change only if it improves the baseline without hiding required source or documentation.
Diagnose and fix Cursor IDE performance issues. Covers editor optimization, indexing tuning, extension auditing, AI feature configuration, and strategies for large codebases.
Step 1: Identify bottleneck
├── Editor lag? → Step 2 (Editor settings)
├── High CPU? → Step 3 (Extension audit)
├── Slow AI? → Step 4 (AI tuning)
└── Memory? → Step 5 (Memory management)
Step 2: Editor settings
├── Disable minimap, breadcrumbs
├── Reduce file watcher scope
└── Increase memory limits
Step 3: Extension audit
├── Profile running extensions
├── Disable heavy extensions
└── Use workspace-scoped disabling
Step 4: AI feature tuning
├── Optimize .cursorignore
├── Use faster models
└── Manage chat history
Step 5: Memory management
├── Close unused workspace folders
├── Limit open editor tabs
└── Clear cachesjson{ // Disable visual features for speed "editor.minimap.enabled": false, "editor.renderWhitespace": "none", "editor.guides.bracketPairs": false, "breadcrumbs.enabled": false, "editor.occurrencesHighlight": "off", "editor.matchBrackets": "never", "editor.folding": false, "editor.glyphMargin": false, // Reduce file watching scope "files.watcherExclude": { "**/node_modules/**": true, "**/.git/objects/**": true, "**/.git/subtree-cache/**": true, "**/dist/**": true, "**/build/**": true, "**/coverage/**": true, "**/.next/**": true, "**/target/**": true }, // Exclude from search and explorer "files.exclude": { "**/node_modules": true, "**/.git": true, "**/dist": true, "**/build": true }, // Memory limits "files.maxMemoryForLargeFilesMB": 4096, // Reduce auto-save overhead "files.autoSave": "onFocusChange", // Limit search results "search.maxResults": 5000 }
json{ "workbench.list.smoothScrolling": false, "editor.smoothScrolling": false, "editor.cursorSmoothCaretAnimation": "off", "terminal.integrated.smoothScrolling": false }
Cmd+Shift+P > Developer: Show Running Extensions
This shows:
Sort by activation time. Extensions taking > 500ms are worth investigating.
Cmd+Shift+P > Developer: Open Process Explorer
Shows per-process CPU and memory usage:
| Extension | Impact | Mitigation | |-----------|--------|------------| | GitLens | CPU: high on large repos | Disable for repos > 50K commits or use lightweight mode | | Prettier | CPU: triggers on every save | Set "editor.formatOnSave": false, format manually | | TypeScript | Memory: large projects | Increase "typescript.tsserver.maxTsServerMemory": 4096 | | ESLint | CPU: validates on type | Set "eslint.run": "onSave" instead of "onType" | | Spell Checker | CPU: large files | Add exclusion patterns for generated files | | Import Cost | CPU: recalculates on change | Disable for projects with many imports |
Right-click extension > Disable (Workspace). This keeps the extension available for other projects while removing it from the current slow one.
The biggest performance lever for AI features:
gitignore# .cursorignore -- aggressive exclusion for large projects node_modules/ dist/ build/ .next/ out/ target/ coverage/ .turbo/ .cache/ __pycache__/ *.pyc venv/ .venv/ # Generated code *.min.js *.min.css *.bundle.js *.d.ts.map *.tsbuildinfo # Data files *.csv *.json.gz *.parquet *.sqlite *.sql # Lock files package-lock.json yarn.lock pnpm-lock.yaml Cargo.lock # Media *.png *.jpg *.gif *.svg *.mp4 *.woff2 # Documentation build output docs/dist/ docs/.vitepress/dist/
Tab completion is fast by design (~100ms), but can feel slow if:
| Factor | Impact | Fix | |--------|--------|-----| | Model choice | Opus/o1 are slower than Sonnet/GPT-4o | Use faster models for simple tasks | | Context size | More @-mentions = slower | Use @Files not @Codebase when possible | | Conversation length | Long chats slow down | Start new chat frequently | | Server load | Peak hours are slower | Use off-peak or BYOK |
Long chat sessions consume memory and slow down responses:
Signs of chat-related slowdown:
- Typing lag in the chat input
- Editor becomes sluggish after extended chat session
- AI responses take progressively longer
Fix:
1. Start a new chat (Cmd+N in chat panel)
2. Close old chat tabs
3. One topic per chat session1. Open specific packages, not the whole monorepo
cursor packages/api/ # Not: cursor .
2. Aggressive .cursorignore (see above)
3. Multi-root workspace with only active packages
File > Add Folder to Workspace (selectively)
4. Disable codebase indexing if not needed
Cursor Settings > Features > Codebase Indexing > off
(You lose @Codebase but gain performance)
5. Increase system resources
Close other Electron apps (Slack, Teams, Discord)
Increase swap space on Linuxbash# Check current limit cat /proc/sys/fs/inotify/max_user_watches # Increase (required for large projects) echo "fs.inotify.max_user_watches=524288" | sudo tee -a /etc/sysctl.conf sudo sysctl -p
bash# macOS: Monitor Cursor memory usage top -pid $(pgrep -f "Cursor") # Linux: Monitor Cursor processes ps aux | grep -i cursor | sort -rn -k4 # If memory exceeds 4GB consistently: # 1. Close unused workspace folders # 2. Limit open editor tabs to ~20 # 3. Restart Cursor daily during heavy use
bash# macOS rm -rf ~/Library/Application\ Support/Cursor/Cache/ rm -rf ~/Library/Application\ Support/Cursor/CachedData/ rm -rf ~/Library/Application\ Support/Cursor/Code\ Cache/ # Linux rm -rf ~/.config/Cursor/Cache/ rm -rf ~/.config/Cursor/CachedData/ rm -rf ~/.config/Cursor/Code\ Cache/
Restart Cursor after clearing. Caches rebuild automatically.
Cursor stores extension data in SQLite databases. If the storage directory grows large:
bash# Check size (macOS) du -sh ~/Library/Application\ Support/Cursor/ # If > 2GB, clearing Cache/ and CachedData/ usually reclaims most space
settings.json to all team members| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 10,682 | 6,528 | -39% | 1 | 1 | 0% | 2,232 | 3,312 | +48% | 0 | 0 | — |
case-02 | fail→pass | 13,794 | 16,599 | +20% | 1 | 1 | 0% | 2,622 | 4,640 | +77% | 0 | 0 | — |
case-03 | fail→fail | 12,028 | 8,301 | -31% | 1 | 1 | 0% | 2,051 | 3,440 | +68% | 0 | 0 | — |
case-04 | pass→pass | 10,749 | 8,646 | -20% | 1 | 1 | 0% | 1,865 | 2,623 | +41% | 0 | 0 | — |
case-05 | fail→fail | 11,756 | 27,444 | +133% | 1 | 1 | 0% | 1,922 | 3,454 | +80% | 0 | 0 | — |
case-06 | fail→fail | 6,403 | 20,536 | +221% | 1 | 1 | 0% | 1,245 | 3,032 | +144% | 0 | 0 | — |
case-07 | pass→pass | 7,303 | 3,347 | -54% | 1 | 1 | 0% | 1,199 | 2,633 | +120% | 0 | 0 | — |
case-08 | pass→pass | 14,567 | 11,400 | -22% | 1 | 1 | 0% | 2,614 | 3,988 | +53% | 0 | 0 | — |
case-09 | pass→pass | 12,778 | 10,563 | -17% | 1 | 1 | 0% | 2,260 | 4,012 | +78% | 0 | 0 | — |
case-10 | pass→pass | 9,112 | 5,959 | -35% | 1 | 1 | 0% | 1,638 | 3,121 | +91% | 0 | 0 | — |
case-15 | pass→pass | 8,149 | 5,502 | -32% | 1 | 1 | 0% | 1,407 | 2,948 | +110% | 0 | 0 | — |
case-11 | pass→pass | 13,854 | 8,866 | -36% | 1 | 1 | 0% | 2,474 | 3,485 | +41% | 0 | 0 | — |
case-12 | pass→pass | 11,567 | 6,851 | -41% | 1 | 1 | 0% | 1,737 | 3,095 | +78% | 0 | 0 | — |
case-13 | pass→pass | 14,336 | 13,244 | -8% | 1 | 1 | 0% | 2,525 | 4,606 | +82% | 0 | 0 | — |
case-14 | fail→pass | 10,750 | 3,805 | -65% | 1 | 1 | 0% | 1,744 | 2,673 | +53% | 0 | 0 | — |
case-16 | fail→fail | 12,036 | 10,247 | -15% | 1 | 1 | 0% | 2,177 | 3,791 | +74% | 0 | 0 | — |
case-17 | fail→pass | 13,539 | 8,252 | -39% | 1 | 1 | 0% | 2,337 | 3,288 | +41% | 0 | 0 | — |
case-18 | fail→pass | 14,387 | 8,125 | -44% | 1 | 1 | 0% | 2,468 | 3,452 | +40% | 0 | 0 | — |
case-19 | fail→pass | 13,704 | 9,426 | -31% | 1 | 1 | 0% | 2,429 | 3,762 | +55% | 0 | 0 | — |
case-20 | fail→fail | 10,888 | 7,273 | -33% | 1 | 1 | 0% | 1,994 | 3,433 | +72% | 0 | 0 | — |
case-21 | fail→pass | 4,937 | 3,594 | -27% | 1 | 1 | 0% | 830 | 2,665 | +221% | 0 | 0 | — |
case-22 | pass→pass | 10,990 | 7,232 | -34% | 1 | 1 | 0% | 1,815 | 3,269 | +80% | 0 | 0 | — |
case-23 | pass→pass | 13,005 | 12,478 | -4% | 1 | 1 | 0% | 2,483 | 4,437 | +79% | 0 | 0 | — |
case-24 | pass→pass | 15,693 | 14,033 | -11% | 1 | 1 | 0% | 3,487 | 5,132 | +47% | 0 | 0 | — |
case-25 | pass→pass | 9,540 | 7,142 | -25% | 1 | 1 | 0% | 1,841 | 3,486 | +89% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 25 cases were attempted. The headline lift of +24 percentage points is the difference between those two pass rates over the 25 comparable cases.
The publisher has shipped newer versions since this run, so these numbers describe v1, not the version currently listed.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.