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

Merged
merged 1 commit into from
Dec 20, 2024

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.

@jukzi
Copy link
Contributor Author

jukzi commented Dec 19, 2024

Since also other reporters like https://bugs.eclipse.org/bugs/show_bug.cgi?id=541040#c7 observed that the perfromance problem can not be deterministically reproduced i think its best to submit even without real world benchmark and keep monitoring.

@jukzi jukzi merged commit fe3554b into eclipse-jdt:master Dec 20, 2024
10 checks passed
@jukzi jukzi deleted the determineIfOnClasspath_1 branch December 20, 2024 08:05
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