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

Improve JDTUtils.resolveCompilationUnit #3314

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

snjeza
Copy link
Contributor

@snjeza snjeza commented Oct 31, 2024

Fixes #3313

Copy link
Contributor

@rgrunber rgrunber left a comment

Choose a reason for hiding this comment

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

Before (javac)

[Trace - 14:36:46] Received response 'textDocument/hover - (43)' in 9404ms.
[Trace - 14:37:23] Received response 'textDocument/hover - (48)' in 6120ms.
[Trace - 14:37:47] Received response 'textDocument/hover - (51)' in 6583ms.
[Trace - 14:39:08] Received response 'textDocument/hover - (53)' in 6115ms.
[Trace - 14:39:45] Received response 'textDocument/hover - (55)' in 6162ms.

After (javac)

[Trace - 14:45:42] Received response 'textDocument/hover - (36)' in 320ms.
[Trace - 14:45:48] Received response 'textDocument/hover - (38)' in 638ms.
[Trace - 14:45:54] Received response 'textDocument/hover - (40)' in 122ms.
[Trace - 14:45:58] Received response 'textDocument/hover - (42)' in 139ms.

Yeah.. I guess that's an improvement 😂

@snjeza
Copy link
Contributor Author

snjeza commented Oct 31, 2024

@rgrunber I have updated the PR.

Copy link
Contributor

@rgrunber rgrunber left a comment

Choose a reason for hiding this comment

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

Looks good! Just one last thing. I would probably reverse the comparison in case toURI(toURI(...)) ever comes out null.

After that feel free to merge.

@rgrunber rgrunber merged commit 3698052 into eclipse-jdtls:master Oct 31, 2024
6 of 7 checks passed
@mickaelistria
Copy link
Contributor

@testforstephen this change might have a good impact on the perf issue you used to see regarding test codelens computation.

@testforstephen
Copy link
Contributor

@testforstephen this change might have a good impact on the perf issue you used to see regarding test codelens computation.

Great improvement. Good to know it.

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

Successfully merging this pull request may close these issues.

Improve JDTUtils.resolveCompilationUnit
4 participants