1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Small performance enhancement, related to 343538

This commit is contained in:
Anton Leherbauer 2011-05-13 07:08:43 +00:00
parent 6c51aa8adf
commit db1a6be8f8
2 changed files with 5 additions and 2 deletions

View file

@ -2383,7 +2383,7 @@ public class IndexBugsTests extends BaseTestCase {
};
job.schedule();
job.join();
Thread.sleep(1000);
Thread.sleep(100);
waitForIndexer(fCProject);
index.acquireReadLock();

View file

@ -94,7 +94,10 @@ public class DeltaAnalyzer {
final int rdkind = rd.getKind();
if (rdkind != IResourceDelta.ADDED) {
IResource res= rd.getResource();
if (res instanceof IFile && handled.add(res)) {
if (!handled.add(res)) {
continue;
}
if (res instanceof IFile) {
switch (rdkind) {
case IResourceDelta.CHANGED:
if ((rd.getFlags() & IResourceDelta.CONTENT) != 0) {