mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41: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. |
||
|---|---|---|
| .. | ||
| dynamic | ||
| io | ||
| renderers | ||
| ui | ||
| biomes.js | ||
| burgs-and-states.js | ||
| coa-generator.js | ||
| coa-renderer.js | ||
| cultures-generator.js | ||
| features.js | ||
| fonts.js | ||
| heightmap-generator.js | ||
| lakes.js | ||
| markers-generator.js | ||
| military-generator.js | ||
| names-generator.js | ||
| ocean-layers.js | ||
| provinces-generator.js | ||
| religions-generator.js | ||
| resample.js | ||
| river-generator.js | ||
| routes-generator.js | ||
| submap.js | ||
| voronoi.js | ||
| zones-generator.js | ||