Idea: Keep an index of the maps already parsed #617
Labels
compile-keymap
Indicates a need for improvements or additions to keymap compilation
enhancement
Indicates new feature requests
needs info
When we resolve include statements, we may parse the same file multiple times, e.g.:
I we want "file(map2)", we end up parsing "base" 3 times and "map1" 2 times, but also all the maps in between…
Caching all parsed maps could be costly, but what if we simply keep an index file/map → map position in file? Then when looking up for a map, we can first check this index and if the map was already parsed, start parsing exactly where the map is or start from scratch if the file or map was not parsed yet.
This would be useful mostly for symbols.
The text was updated successfully, but these errors were encountered: