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

Bug 311141

Summary: Block selection is very slow for big blocks
Product: [Tools] CDT Reporter: pkr
Component: cdt-editorAssignee: Project Inbox <cdt-editor-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: john, zeratul976
Version: 0 DD 1.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description pkr CLA 2010-04-30 04:45:41 EDT
Build Identifier: 1.14.2979 

When I use the blockselector to select ablock of 39000 lines the program is hanging.

Reproducible: Always

Steps to Reproduce:
1.start block selecter shift + alt + a
2.Start selecting a small block keep the shift key pressed.
3.Scroll with the mouse down to the last line which you want to select and go back in the editor with the mouse. now the block is selected an the system is hanging.
Comment 1 Anton Leherbauer CLA 2010-05-10 10:38:52 EDT
Could you provide a thread dump of the JVM when it appears to hang?
For more information see http://wiki.eclipse.org/How_to_report_a_deadlock
Comment 2 Nathan Ridge CLA 2017-01-06 21:31:52 EST
I don't have a file with 39000 lines, but I tried this on a file with about 3700 lines (I used Shift+Ctrl+End to select to the last line of the file), and manipulating that selection (e.g. growing it by 1 character horizontally) is very slow.

Probably not a deadlock but a poor (supra-linear) algorithm somewhere?
Comment 3 John McCabe CLA 2023-04-19 05:58:51 EDT
Same sort of behaviour in PyDev in Eclipse 20230309-1520; looks more fundamental than a CDT issue.