[optimization] avoid writing caches multiple times on file delete events #1118
Labels
for: eclipse
something that is specific for Eclipse
for: vscode
something that is specific for VSCode
theme: performance
theme: spring index & symbols
type: enhancement
Milestone
The current cache implementation causes the cache files to be written way too often, especially on file delete events.
On file delete events, the
SpringSymbolIndex
calls every indexer (java, factories, xml) to react to those file delete events. Every indexer then runs a loop through all deleted files and removes that deletes file from the cache individually, sometimes the cache remove file method is called multiple times for different types (like symbols, bean index, etc.). On every call, the cache writes the updated cache to disc.We should improve this implementation:
The text was updated successfully, but these errors were encountered: