much faster property search (thanks to Nik pointing out that I'm not able to write intersection correctly from the first time)

This commit is contained in:
peter.gromov
2010-11-12 19:11:48 +03:00
parent 9af5e6de4d
commit 81bb4e0913
@@ -646,10 +646,9 @@ public class PsiSearchHelperImpl implements PsiSearchHelper {
first = false;
}
else {
for (VirtualFile file : local.keySet()) {
if (intersection.containsKey(file)) {
intersection.putValues(file, local.get(file));
}
intersection.keySet().retainAll(local.keySet());
for (VirtualFile file : intersection.keySet()) {
intersection.get(file).retainAll(local.get(file));
}
}
}