Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[performance] determineIfOnClasspath with last project used #3470 #3475

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jukzi
Copy link
Contributor

@jukzi jukzi commented Dec 18, 2024

Instead of randomly looping over all projects try the last successful first.

Tested by JavaModelTests.testCreatePkgHandleInDifferentProject()

#3470

@jukzi jukzi force-pushed the determineIfOnClasspath_1 branch 2 times, most recently from 3d1e4f0 to 8697e97 Compare December 18, 2024 14:36
…dt#3470

Instead of randomly looping over all projects try the last successful
first.

Tested by JavaModelTests.testCreatePkgHandleInDifferentProject()

eclipse-jdt#3470
@jukzi jukzi force-pushed the determineIfOnClasspath_1 branch from 8697e97 to d827804 Compare December 18, 2024 14:41
Copy link
Member

@iloveeclipse iloveeclipse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, thanks.

Do you have performance numbers for that?

@jukzi
Copy link
Contributor Author

jukzi commented Dec 18, 2024

Do you have performance numbers for that?

I did not test it beside junit yet, as i could not reproduce it yet. It's just that the stacktrace clearly indicated that 1000 unrelated projects might have been searched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants