mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 02:06: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.schedule();
|
||||||
job.join();
|
job.join();
|
||||||
Thread.sleep(1000);
|
Thread.sleep(100);
|
||||||
waitForIndexer(fCProject);
|
waitForIndexer(fCProject);
|
||||||
|
|
||||||
index.acquireReadLock();
|
index.acquireReadLock();
|
||||||
|
|
|
@ -94,7 +94,10 @@ public class DeltaAnalyzer {
|
||||||
final int rdkind = rd.getKind();
|
final int rdkind = rd.getKind();
|
||||||
if (rdkind != IResourceDelta.ADDED) {
|
if (rdkind != IResourceDelta.ADDED) {
|
||||||
IResource res= rd.getResource();
|
IResource res= rd.getResource();
|
||||||
if (res instanceof IFile && handled.add(res)) {
|
if (!handled.add(res)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (res instanceof IFile) {
|
||||||
switch (rdkind) {
|
switch (rdkind) {
|
||||||
case IResourceDelta.CHANGED:
|
case IResourceDelta.CHANGED:
|
||||||
if ((rd.getFlags() & IResourceDelta.CONTENT) != 0) {
|
if ((rd.getFlags() & IResourceDelta.CONTENT) != 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue