1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Bug 405638 - [performance] CExternalSettingsManager causes all workspace

project-descriptions to load prematurely

Change-Id: I814835ce63b358dcab4349cd88f205b9dbe81c85
Reviewed-on: https://git.eclipse.org/r/11935
Reviewed-by: Andrew Gvozdev <angvoz.dev@gmail.com>
IP-Clean: Andrew Gvozdev <angvoz.dev@gmail.com>
Tested-by: Andrew Gvozdev <angvoz.dev@gmail.com>
This commit is contained in:
Baltasar Belyavsky 2013-05-14 13:21:55 -04:00 committed by Andrew Gvozdev
parent 12d8ae41e2
commit e9dfe3c1e9

View file

@ -8,6 +8,7 @@
* Contributors:
* Intel Corporation - Initial API and implementation
* James Blackburn (Broadcom Corp.)
* Baltasar Belyavsky (Texas Instruments) - [405638] CExternalSettingsManager causes all workspace project-descriptions to load prematurely
*******************************************************************************/
package org.eclipse.cdt.internal.core.settings.model;
@ -481,7 +482,8 @@ public class CExternalSettingsManager implements ICExternalSettingsListener, ICP
}
private ProjDesCfgList createCfgList(IProject project, Set<String> cfgIdSet){
ICProjectDescription des = CProjectDescriptionManager.getInstance().getProjectDescription(project, false);
// ignore projects which haven't loaded yet - forcing them to load here is expensive and unnecessary [Bug 405638]
ICProjectDescription des = CProjectDescriptionManager.getInstance().getProjectDescription(project, false, false);
if(des == null)
return null;