This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 423725 - [Contributions] Popup menus slowdown over time (> 5 seconds)
Summary: [Contributions] Popup menus slowdown over time (> 5 seconds)
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.3.2   Edit
Assignee: Paul Webster CLA
QA Contact: Daniel Rolka CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-10 11:41 EST by Michael Valenta CLA
Modified: 2014-01-30 15:14 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Valenta CLA 2013-12-10 11:41:41 EST
I've debugged this with Paul and it appears the issue is in 

org.eclipse.e4.ui.workbench.renderers.swt.ContributionRecord.merge(MExpression, MExpression)

because the two expressions are identical. This causes the expression to grow larger and larger on every menu popup which makes the menu take longer to show up.
Comment 1 Paul Webster CLA 2013-12-13 10:58:53 EST
https://git.eclipse.org/r/19796

Fix for master.  We can review it and then cherry-pick for R4_3_maintenance

PW
Comment 2 Dani Megert CLA 2013-12-17 06:48:01 EST
Which context menu triggers the code? I've set a breakpoint in ContributionRecord.merge(MExpression, MExpression) but it was never reached.

Maybe the problem is already fixed with the change made for bug 398381, which also reported a leak?
Comment 3 Paul Webster CLA 2013-12-17 09:46:25 EST
(In reply to Dani Megert from comment #2)
> Which context menu triggers the code? I've set a breakpoint in
> ContributionRecord.merge(MExpression, MExpression) but it was never reached.

In RTC, it was the org.eclipse.ui.projectConfigure menu.  It was triggered reliably in Kepler.

I can't reproduce this in Luna SDK by default.  But if I provide 2 org.eclipse.ui.menus extensions that share a menu I can reproduce the problem if their core expressions are different.

Maybe we're not hitting it with the default Configure submenu any more because that leak was fixed.

PW
Comment 5 Paul Webster CLA 2013-12-20 10:36:43 EST
I've pushed a review for 4.3.2 https://git.eclipse.org/r/20122

PW
Comment 7 Paul Webster CLA 2014-01-30 15:14:21 EST
In 4.3.2.M20140129-0800

PW