Skip to content

Conversation

@mbien
Copy link
Member

@mbien mbien commented Oct 25, 2025

instead of merging entries into the ClassPath one by one, we collect them first to build the ClassPath as final step.

this method is mostly used by the find usage action

getClasspathInfoFor() execution time in ms with all NB modules open during find-usage action on a public method:

before: 6863
after: 3845

(the middle section of the loop had the wrong indentation level, recommending to ignore whitespace during diff)

@mbien mbien added this to the NB29 milestone Oct 25, 2025
@mbien mbien requested a review from lahodaj October 25, 2025 19:32
@mbien mbien added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) performance labels Oct 25, 2025
instead of merging entries into the ClassPath one by one, we collect
them first to build the ClassPath as final step.

this method is mostly used by the find usage action
@mbien mbien changed the title Find Usage performance: moved claspath merging out of the inner loop Find Usage performance: moved classpath merging out of the inner loop Oct 25, 2025
@mbien mbien force-pushed the find-usages-cp-merge-performance branch from 1a7bb26 to b839953 Compare October 25, 2025 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant