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

Bug 328806

Summary: performance for opening context menu on large tree
Product: [Eclipse Project] Platform Reporter: Jörg Bolay <bolay>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: julian.honnen, Lars.Vogel, nikita, patrick.gindner
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug
Attachments:
Description Flags
call tree from a profiler
none
hot spots from profiler none

Description Jörg Bolay CLA 2010-10-27 06:04:36 EDT
Build Identifier: 3.5.2

opening a context menu on a resonable large selection (10000 objects 6 levels deep from root) in a treeviewer takes about 20s. During the time it takes to open the context menu 57 times the Tree.getSelection is called. For every selected item (10000 objects) the path to root is constructed (6 objects). These calls to getSelection take up the lions share of the time till context menu opens. 

Reproducible: Always

Steps to Reproduce:
1. create a tree with a hirachy 6 deep 
2. create a list with 10000 objects in it 
3. select all 10000 objects
4. open a context menu on the selection
Comment 1 Jörg Bolay CLA 2010-10-27 06:06:16 EDT
Created attachment 181815 [details]
call tree from a profiler
Comment 2 Jörg Bolay CLA 2010-10-27 06:07:06 EDT
Created attachment 181816 [details]
hot spots from profiler
Comment 3 Eclipse Genie CLA 2019-08-08 11:42:07 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Lars Vogel CLA 2019-08-08 15:32:52 EDT
Nikita, is this bug still relevant? If yes, please remove stalebug flag.