Introduce custom Java model implementation for class-files
It's only used for CLI compiler, and it should improve performance of loading Java descriptors from class-files For IntelliJ, it leads to 10-15% percent speedup of Kotlin Builder Before this change, we were using a Java model based on Java PSI that also read class files, but do it less effectively since it performs some extra work, that we don't need, e.g. eagerly reading all the inner classes
This commit is contained in:
@@ -284,6 +284,12 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
doTestCompiledJava(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("TopLevel$Class.java")
|
||||
public void testTopLevel$Class() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJava/TopLevel$Class.java");
|
||||
doTestCompiledJava(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("TwoFields.java")
|
||||
public void testTwoFields() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJava/TwoFields.java");
|
||||
|
||||
+6
@@ -3410,6 +3410,12 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("TopLevel$Class.java")
|
||||
public void testTopLevel$Class() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJava/TopLevel$Class.java");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("TwoFields.java")
|
||||
public void testTwoFields() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJava/TwoFields.java");
|
||||
|
||||
Reference in New Issue
Block a user