1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Chris Wiebe new patch: deal with type cache scalability.

This commit is contained in:
Alain Magloire 2004-05-17 16:03:08 +00:00
parent 4e8200ae93
commit c5dabe7b00
3 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,14 @@
2004-05-12 Chris Wiebe
Heavy refactoring of type cache to address scalability
concerns.
2004-05-06 Chris Wiebe
Creating a new Job to handle the changes, instead
of reusing the same job.
2004-04-20 Chris Wiebe
refactored TypeCacheDeltaListener into standalone class
added option in Work In Progress prefs page to disable background cache
2004-04-06 Chris Wiebe
initial placement of non-ui code into org.eclipse.cdt.core.browser

View file

@ -181,7 +181,7 @@ public class AllTypesCache {
IProject[] projects = scope.getEnclosingProjects();
ITypeInfoVisitor visitor = new ITypeInfoVisitor() {
public void visit(ITypeInfo info) {
if (fQualifiedName.equals(info.getQualifiedTypeName())
if ((fScope != null && info.isEnclosed(fScope)) && fQualifiedName.equals(info.getQualifiedTypeName())
&& ArrayUtil.contains(fKinds, info.getCElementType())) {
fTypesFound.add(info);
}

View file

@ -219,7 +219,6 @@ public class TypeParser implements ISourceElementRequestor {
//TODO what about working copies outside the workspace?
}
boolean foundType = false;
monitor.beginTask("", searchPaths.length + workingCopyPaths.size()); //$NON-NLS-1$
try {
fTypeToFind = info;