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

Bug 316282

Summary: [relengtool] Opening context menu can take several seconds due to releng tool
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: RelengAssignee: Dani Megert <daniel_megert>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 Keywords: performance
Version: 3.6   
Target Milestone: 3.7 M1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 260684    
Attachments:
Description Flags
Fix none

Description Dani Megert CLA 2010-06-09 08:46:09 EDT
3.6 RC4 but also in previous releases.

1. have workspace with many projects, at least one shared and one map file 
   project
2. observe: context menu opens instantaneous
3. on a shared project do: context menu > Compare With > Released
4. repeat step 3
   ==> it can take several seconds until the context menu is opened

This is caused by very expensive isEnabled() computation in 'CompareLocalToMap' and 'ReplaceLocalFromMap'.
Comment 1 Dani Megert CLA 2010-06-09 08:47:58 EDT
Created attachment 171519 [details]
Fix

This fix drastically improves the performance and also fixes several issues like not removing resource listeners or not disposing the MapProject.
Comment 2 Dani Megert CLA 2010-06-09 12:23:54 EDT
Fixed in HEAD.