Fantasy-Map-Generator/modules/io
Claude 91bd678535
perf(obsidian): optimize folder tree for large vaults
The previous implementation read ALL file contents to get frontmatter
when browsing notes, which caused massive slowdown for large vaults
(13k+ files = 13k+ HTTP requests).

Changes:
- Add listAllNotePaths() function that only gets file paths (fast)
- Build folder tree from paths only, no content reading
- Lazy load file content only when user clicks on a file
- Change message from "Loading all notes" to "Loading file list"
- Add logging to show file count being displayed

Performance improvement:
- Before: O(n) HTTP requests where n = number of files
- After: O(1) - just the recursive directory scan
- File content loaded on-demand (1 request per clicked file)

This makes the folder tree instant even for vaults with 10k+ files.
2025-11-14 05:18:07 +00:00
..
cloud.js chore: parse DEBUG setting as an object 2024-10-22 14:45:25 +02:00
export.js fix(v1.108.11): add external icons to export in base64 format 2025-07-18 02:31:10 +02:00
load.js fix(v1.108.13): add comprehensive race condition guards in load.js 2025-11-14 03:30:12 +00:00
obsidian-bridge.js perf(obsidian): optimize folder tree for large vaults 2025-11-14 05:18:07 +00:00
save.js chore: remove debug logging from default map feature 2025-11-14 03:55:45 +00:00