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

Bug 322057

Summary: [cdt][performance] Quick outline is slow with big files
Product: z_Archived Reporter: Marc-André Laperle <malaperle>
Component: MylynAssignee: Shawn Minto <shawn.minto>
Status: CLOSED MOVED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Marc-André Laperle CLA 2010-08-07 17:04:19 EDT
Steps to reproduce:
1. Activate a task
2. Open a big file (around 5K+ lines)
3. Open quick outline (ctrl+o)
4. Type the first letter of an element. Notice the delay (sometimes couple of seconds).

There is no delay when no task is activated. Also, I can't reproduce this with JDT.
Comment 1 Shawn Minto CLA 2010-09-02 12:43:16 EDT
I just tried reproducing this on SWT's os.c for win32.  I did see a bit of a lag when the first letter was typed, but I could reproduce this sometimes without a task active as well.  This only seems to happen the first time that the file is opened and the first time that the quick outline is used.  Could you confirm if you can reproduce it without a task active this way as well?  I originally suspected the task context label decorator, but disabling it seemed to have no effect.
Comment 2 Marc-André Laperle CLA 2010-09-02 13:10:37 EDT
I can definitely see a far bigger delay when my task is activated on certain files. I can't share my files but I will try to create a file and attach it. Thank you for looking into it.

(In reply to comment #1)
> originally suspected the task context label decorator, but disabling it seemed
> to have no effect.

I can try that. Where is it in the code?
Comment 3 Shawn Minto CLA 2010-09-02 13:29:52 EDT
You can disable the label decorator in the Eclipse Preferences under General > Appearance > Label Decorations and uncheck "Task Context Decorator"
Comment 4 Marc-André Laperle CLA 2010-09-02 13:34:14 EDT
(In reply to comment #3)
> You can disable the label decorator in the Eclipse Preferences under General >
> Appearance > Label Decorations and uncheck "Task Context Decorator"

When I disable the label decorator, it is a lot faster, as fast as without the task activated. This seems to be the problem. At least, the workaround is pretty easy.
Comment 5 Shawn Minto CLA 2010-09-03 11:10:08 EDT
Thanks for letting us know that this is the case.  I will look into this further for Mylyn 3.5 and see if there is any way that we can make this a bit faster.  I am surprised that you do not see this on Java files as well though as they should have similar performance profiles for this decorator.
Comment 6 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn