Skip to content

Improve startup cache loading performance#9307

Draft
mbien wants to merge 1 commit intoapache:masterfrom
mbien:cache-loading-perf
Draft

Improve startup cache loading performance#9307
mbien wants to merge 1 commit intoapache:masterfrom
mbien:cache-loading-perf

Conversation

@mbien
Copy link
Copy Markdown
Member

@mbien mbien commented Mar 29, 2026

  • use Data*Streams instead of Object*Streams
  • simplify file format (no XML)
  • code renovation and minor smaller optimizations

result are about 3-4x faster cache loading times

minor:

  • List -> Set for field solely used for contains() in inner loop
  • removed a test cases testing ThreadDeath as part of the cleanup

see the readCache() and calculateParents() marked in purple

before:
startup_cacheio_0

after:
startup_cacheio_1

third PR for some more startup optimizations pending. (first was #9303)

@mbien mbien added this to the NB30 milestone Mar 29, 2026
@mbien mbien added Code cleanup Label for cleanup done on the Netbeans IDE performance Platform [ci] enable platform tests (platform/*) ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Mar 29, 2026
 - use Data*Streams instead of Object*Streams
 - simplify file format (no XML)
 - code renovation and minor smaller optimizations

result are 3-4x faster cache load times (readCache() and
calculateParents() methods)

minor:
 - List -> Set for field solely used for contains() in inner loop
@mbien mbien force-pushed the cache-loading-perf branch from 0047b0a to 34d1d39 Compare March 29, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Code cleanup Label for cleanup done on the Netbeans IDE performance Platform [ci] enable platform tests (platform/*)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant