mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for 202683: [ scalability ] PDOM manager is very aggressive with Job usage.
This commit is contained in:
parent
89f9f4d8d3
commit
02e0e771fe
1 changed files with 3 additions and 3 deletions
|
@ -654,10 +654,10 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
// have to check for that.
|
||||
ISchedulingRule rule= project.getWorkspace().getRuleFactory().refreshRule(project.getFolder(SETTINGS_FOLDER_NAME));
|
||||
if (project.contains(rule)) {
|
||||
rule= project;
|
||||
rule= new MultiRule(new ISchedulingRule[] {project, INDEXER_SCHEDULING_RULE });
|
||||
}
|
||||
else if (!rule.contains(project)) {
|
||||
rule= new MultiRule(new ISchedulingRule[] {rule, project});
|
||||
rule= new MultiRule(new ISchedulingRule[] {rule, project, INDEXER_SCHEDULING_RULE });
|
||||
}
|
||||
addProject.setRule(rule);
|
||||
addProject.setSystem(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue