Don't let ignored resources cause index update jobs.

Changes to ignored resources cause deltas fired by eclipse. These deltas
will cause index update jobs even though there is nothing to do. In the
worst case, a lot of resources are changed, and even though nothing
happened to tracked files, a full re-index is done because the changed
resource count threshold was reached.

Change-Id: Ic8ab3a93cb877a7a896c9bd88a878eb35c29d046
Signed-off-by: Markus Duft <markus.duft@salomon.at>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Decrease job startup delay for IndexDiffCache updates

The fix for bug 417597 (https://git.eclipse.org/r/30261) can cause
performance problems for slow workspaces where *lot* of changes were
reported but the incremental index update is not fast enough.

Because the changes are collected until the previous job is done, if the
number of changes exceeds RESOURCE_LIST_UPDATE_LIMIT (1000) the full
index update will be triggered which costs even more time.

The proposed fix is to decrease the IndexDiffUpdateJob start delay from
400 to 10 ms, with the hope that this will help slow workspaces to
perform updates faster.

Change-Id: Iffff9188510d763a00315661677e9386ca886b47
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Don't access repositoryCache without lock

Bug: 455813
Change-Id: I9ba7d9fc69a5442a8912b8f31e487c95af8d9690
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Avoid iterating on deleted repositories in IteratorService

Bug: 455815
Change-Id: I01c593c8a53f3a1e8a44de1e21698f334da9c713
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Don't try to format diff if repository is gone

Bug: 455816
Change-Id: Ic031431b46d0207d2a511e8b5bdd8fdf00335bce
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>