mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-dfa] PlainDescriptor: use identityHashCode
Improves LiveVariableAnalyzer performance, when there are many identically-named variables, as we have much less hash collisions Improves IDEA-375149 Slow Java Debugger Data Views - ControlFlowAnalyzer.buildControlFlow() GitOrigin-RevId: b9e7127cdfd2d4696f7066c3c48d5711cecab415
This commit is contained in:
committed by
intellij-monorepo-bot
parent
64671a5d65
commit
30f7d3ec26
+1
-1
@@ -34,7 +34,7 @@ public final class PlainDescriptor extends PsiVarDescriptor {
|
||||
|
||||
public PlainDescriptor(@NotNull PsiVariable variable) {
|
||||
myVariable = variable;
|
||||
myHash = Objects.hashCode(variable.getName());
|
||||
myHash = System.identityHashCode(variable);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -762,4 +762,6 @@ public class DataFlowInspectionTest extends DataFlowInspectionTestCase {
|
||||
public void testIoContracts() { doTest(); }
|
||||
public void testGetTernary() { doTest(); }
|
||||
public void testClosureInConstructor() { doTest(); }
|
||||
|
||||
public void testHugeMethodFlow() { doTest(); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user