Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335535

Summary: [run control] Stepping is slow on a Mac
Product: [Tools] CDT Reporter: Pawel Piech <pawel.1.piech>
Component: cdt-debug-dsfAssignee: Project Inbox <cdt-debug-dsf-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug, malaperle
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Pawel Piech CLA 2011-01-27 00:53:58 EST
Running 3.7M5/8.0M5 Candidate

I tried stepping as fast as I could by holding the F6 key and noticed that the stepping speed is much slower than on other platforms.  Also CDI stepping is somewhat faster as well.

Stepping with DSF is optimized such that the instruction pointer in the editor is refreshed after every step.  The text selection in the editor is delayed because updating all the selection listeners in the window is rather expensive.  This optimization is quite efficient on Windows and Linux, however it appears that it doesn't work as well on the Mac.  Comparing the CDI which does not paint the instruction pointer after every step and the DSF implementation, which does, it seems that painting the annotation is the most expensive step on this platform.