obsidian-performance-tuning

Featured

Optimize Obsidian plugin performance for smooth operation in large vaults. Use when experiencing lag, memory issues, slow startup, or optimizing plugin code for vaults with thousands of files. Trigger with phrases like "obsidian performance", "obsidian slow", "optimize obsidian plugin", "obsidian memory usage", "obsidian lag".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Obsidian Performance Tuning ## Overview Optimize Obsidian plugin performance for large vaults (10,000+ files): profile bottlenecks with DevTools, implement lazy initialization, process files in batches with UI yielding, use LRU caches with bounded memory, debounce event handlers, and optimize DOM rendering with virtual scrolling and DocumentFragment. ## Prerequisites - Working Obsidian plugin with at least one performance concern - Developer Console access (Ctrl+Shift+I / Cmd+Option+I) - Understanding of async JavaScript and the event loop ## Performance Benchmarks | Metric | Good | Warning | Critical | |--------|------|---------|----------| | Plugin load time (`onload`) | < 100ms | 100-500ms | > 500ms | | Command execution | < 50ms | 50-200ms | > 200ms | | Single file operation | < 10ms | 10-50ms | > 50ms | | Memory increase on load | < 10MB | 10-50MB | > 50MB | | Event handler execution | < 5ms | 5-20ms | > 20ms | ## Instructions ### Step 1: Profile with DevTools Performance Tab ```typescript // Add timing instrumentation to identify bottlenecks export default class MyPlugin extends Plugin { async onload() { const loadStart = performance.now(); await this.loadSettings(); console.log(`[perf] loadSettings: ${(performance.now() - loadStart).toFixed(1)}ms`); const indexStart = performance.now(); await this.buildIndex(); console.log(`[perf] buildIndex: ${(performance.now() - indexStart).toFixed(1)}ms`); const cmdStart = performance.now();...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category