mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cache enumerator data, remove unnecessary enumerator queries
This commit is contained in:
+2
-4
@@ -68,8 +68,8 @@ public class BytecodeAnalysisConverter implements ApplicationComponent {
|
||||
IOUtil.openCleanOrResetBroken(new ThrowableComputable<Void, IOException>() {
|
||||
@Override
|
||||
public Void compute() throws IOException {
|
||||
myPackageEnumerator = new PersistentStringEnumerator(packageKeysFile);
|
||||
myNamesEnumerator = new PersistentStringEnumerator(namesFile);
|
||||
myPackageEnumerator = new PersistentStringEnumerator(packageKeysFile, true);
|
||||
myNamesEnumerator = new PersistentStringEnumerator(namesFile, true);
|
||||
myCompoundKeyEnumerator = new PersistentEnumeratorDelegate<int[]>(compoundKeysFile, new IntArrayKeyDescriptor(), 1024 * 4);
|
||||
return null;
|
||||
}
|
||||
@@ -198,8 +198,6 @@ public class BytecodeAnalysisConverter implements ApplicationComponent {
|
||||
}
|
||||
compoundKey[i] = myPackageEnumerator.enumerate(packageName);
|
||||
compoundKey[i + 1] = myNamesEnumerator.enumerate(simpleName);
|
||||
myPackageEnumerator.valueOf(compoundKey[i]);
|
||||
myNamesEnumerator.valueOf(compoundKey[i + 1]);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user