mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:10:43 +07:00
less garbage during massive stub queries (e.g. goto symbol)
This commit is contained in:
@@ -704,7 +704,6 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
ObjectStubTree tree = StubTreeLoader.getInstance().readOrBuild(getProject(), vFile, this);
|
||||
if (!(tree instanceof StubTree)) return null;
|
||||
StubTree stubHolder = (StubTree)tree;
|
||||
tree.setDebugInfo(tree.getDebugInfo() + "\n loaded at " + vFile.getTimeStamp() + "; mod stamp" + getModificationStamp() + "; viewProvider=" + getViewProvider());
|
||||
|
||||
synchronized (PsiLock.LOCK) {
|
||||
if (getTreeElement() != null) return null;
|
||||
|
||||
@@ -73,7 +73,7 @@ public class StubTreeLoaderImpl extends StubTreeLoader {
|
||||
}
|
||||
if (element instanceof PsiFileStub) {
|
||||
StubTree tree = new StubTree((PsiFileStub)element);
|
||||
tree.setDebugInfo("created from file content, timestamp=" + vFile.getTimeStamp());
|
||||
tree.setDebugInfo("created from file content");
|
||||
return tree;
|
||||
}
|
||||
}
|
||||
@@ -124,10 +124,7 @@ public class StubTreeLoaderImpl extends StubTreeLoader {
|
||||
return processError(vFile, "No stub serializer: " + vFile.getPresentableUrl() + ": " + e.getMessage(), e);
|
||||
}
|
||||
ObjectStubTree tree = stub instanceof PsiFileStub ? new StubTree((PsiFileStub)stub) : new ObjectStubTree((ObjectStubBase)stub, true);
|
||||
tree.setDebugInfo("created from index: " + StubUpdatingIndex.getIndexingStampInfo(vFile) +
|
||||
", wasIndexedAlready=" + wasIndexedAlready +
|
||||
", docSaved=" + saved +
|
||||
", queried at " + vFile.getTimeStamp());
|
||||
tree.setDebugInfo("created from index");
|
||||
return tree;
|
||||
}
|
||||
else if (size != 0) {
|
||||
|
||||
Reference in New Issue
Block a user