From 15e74ea692ff531a8c06ca8f8eefdfb7d5592f4d Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 1 Aug 2013 20:00:39 +0200 Subject: [PATCH] less garbage during massive stub queries (e.g. goto symbol) --- .../src/com/intellij/psi/impl/source/PsiFileImpl.java | 1 - .../src/com/intellij/psi/stubs/StubTreeLoaderImpl.java | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/platform/core-impl/src/com/intellij/psi/impl/source/PsiFileImpl.java b/platform/core-impl/src/com/intellij/psi/impl/source/PsiFileImpl.java index ce3acdb7328b..8415f56fa717 100644 --- a/platform/core-impl/src/com/intellij/psi/impl/source/PsiFileImpl.java +++ b/platform/core-impl/src/com/intellij/psi/impl/source/PsiFileImpl.java @@ -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; diff --git a/platform/lang-impl/src/com/intellij/psi/stubs/StubTreeLoaderImpl.java b/platform/lang-impl/src/com/intellij/psi/stubs/StubTreeLoaderImpl.java index db8ead8d84c4..4ba8fd23dfba 100644 --- a/platform/lang-impl/src/com/intellij/psi/stubs/StubTreeLoaderImpl.java +++ b/platform/lang-impl/src/com/intellij/psi/stubs/StubTreeLoaderImpl.java @@ -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) {