Skip to content

Improve the performance of inferSelection - #1609

Merged
testforstephen merged 1 commit into
eclipse-jdtls:masterfrom
CsCherrYY:inferSelectionTest
Nov 27, 2020
Merged

testforstephen merged 1 commit into
eclipse-jdtls:masterfrom
CsCherrYY:inferSelectionTest

Conversation

@CsCherrYY

Copy link
Copy Markdown
Contributor

When the language server is just finding valid expression, ExtractMethodRefactoring.checkInitialConditions() has no need to do some initialize methods, in some corner cases such as working on a large Java file with many duplicate methods, this may affect the performance of inferSelection.

This PR is to remove the unnecessary processes.

Signed-off-by: Shi Chen chenshi@microsoft.com

Signed-off-by: Shi Chen <chenshi@microsoft.com>
@eclipse-ls-bot

Copy link
Copy Markdown
Contributor

Can one of the admins verify this patch?

@testforstephen

Copy link
Copy Markdown
Contributor

add to whitelist

@testforstephen

Copy link
Copy Markdown
Contributor

I replied "add to whitelist" and it doesn't seem to work.
@rgrunber @fbricon Do it need any special permissions for this?

@testforstephen

Copy link
Copy Markdown
Contributor

ping... @rgrunber @snjeza @fbricon

@testforstephen

Copy link
Copy Markdown
Contributor

test this please

@testforstephen testforstephen added this to the End November 2020 milestone Nov 27, 2020
@testforstephen
testforstephen merged commit b6c7d48 into eclipse-jdtls:master Nov 27, 2020
@CsCherrYY
CsCherrYY deleted the inferSelectionTest branch November 30, 2020 07:49
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.

3 participants