mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
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. |
||
|---|---|---|
| .. | ||
| cloud.js | ||
| export.js | ||
| load.js | ||
| obsidian-bridge.js | ||
| save.js | ||