Community
Participate
Working Groups
Created attachment 170836 [details] suggested fix I'm seeing slow interactive editor response when copying and pasting code. Part of the problem seems to be CodanMarkerProblemReporter#deleteProblems(IResource, IChecker). This deletes the markers one at a time, causing a resource change event to be fired after each marker is deleted, leading to recompute of editor and navigation tree annotations multiple times for every editor edit. This change should be batched in a workspace runnable to prevent over-zealous notification.
There's the same issue with #reportProblem
(In reply to comment #1) > There's the same issue with #reportProblem A better approach would be for the checkers, when they run, to either: - Remove and set the markers all in one workspace operation or better: - Remove and re-add just the markers that have disappeared and been re-added. The current behaviour performs pretty badly here as each marker modification causes all the listeners to be notified.
You can apply delete marker patch but the insert should wait for next release, it would require some refactoring
*** cdt cvs genie on behalf of elaskavaia *** Bug 315425 batch marker deletion (James' patch) [*] CodanMarkerProblemReporter.java 1.13 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/internal/core/model/CodanMarkerProblemReporter.java?root=Tools_Project&r1=1.12&r2=1.13
original problem was fixed in 7.0, need to open another bug for comment #2