Bug 351722 - MakeTarget methods should not call projectTargets.saveTargets();
Summary: MakeTarget methods should not call projectTargets.saveTargets();
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 7.0.1   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2011-07-11 11:01 EDT by Sami Wagiaalla CLA
Modified: 2020-09-04 15:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sami Wagiaalla CLA 2011-07-11 11:01:10 EDT
The autotools plugin updates make targets by iterating of all targets and making calls to org.eclipse.cdt.make.internal.core.MakeTarget.set*
through IMakeTarget several of these calls result in a call to projectTargets.saveTargets(); which again iterates over all targets.

This results in an O(n^2) situation casing eclipse to hang. It would be nice if there is an interface to update a MakeTarget without calling save all