[spring-index] optimize cache operations #1071
Labels
for: eclipse
something that is specific for Eclipse
for: vscode
something that is specific for VSCode
theme: performance
theme: spring index & symbols
theme: validation
type: enhancement
Milestone
At the moment, the index cache that keeps symbols, bean index, and potentially additional information in a cache on disc offers room for improvement. At the moment, the cache structure is kept in memory and updated internally and written to disc on every change. This causes frequent cache writes to disc as well as consumes additional memory all the time for the full cache content.
Two thoughts:
the cache writes to disc don't need to happen on every event, they could be accumulated in memory and then written to disc on specific events only (once an hour, after x number of changes, or something else)
the internal cache structure on disc could be changed towards an incremental model, where individual change events (deltas) are written to disc in an append mode. At specific moments (initial cache read, after certain events, or something else) those delta could be merged into the overall cache
The text was updated successfully, but these errors were encountered: