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:
parent
6c51aa8adf
commit
db1a6be8f8
2 changed files with 5 additions and 2 deletions
|
@ -2383,7 +2383,7 @@ public class IndexBugsTests extends BaseTestCase {
|
|||
};
|
||||
job.schedule();
|
||||
job.join();
|
||||
Thread.sleep(1000);
|
||||
Thread.sleep(100);
|
||||
waitForIndexer(fCProject);
|
||||
|
||||
index.acquireReadLock();
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue