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

Bug 526916

Summary: [10.13] Performance issues with StyledText
Product: [Eclipse Project] Platform Reporter: Shawn Liu <shawn>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: lshanmug, peter
Version: 4.7.1a   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Bug Depends on:    
Bug Blocks: 527287, 534934    

Description Shawn Liu CLA 2017-11-06 23:14:16 EST
I have used Eclipse RCP platform for several years.

In my own Eclipse-based application, it's always ok in Windows and old macosx(exclude high sierra). But now in macosx high sierra, it encountered performance problem. it became so slow when I input text in StyledText, and refresh also slow when update a small region of FigureCanvas, and others.

May somebody could update SWT to adapt to new macosx High Sierra, to make it more useful for Eclipse RCP developers?

Thankyou very much.
Comment 1 Shawn Liu CLA 2017-11-06 23:21:35 EST
By debug, I found problems may be where as follows:

1. FigureCanvas.redraw(x, y, width, height, all). Which cost too long when be called. (eg. spent nearly 350ms in my application when redraw(0, 0, 80, 50) rectangle region)

2. StyledText.modifyContent(): 
(1) content.replaceTextRange(event.start, replacedLength, event.text); 
(2) setSelection(event.start + event.text.length(), 0, true, false);
spend too much time. May be as same as the first one.

Please help.
Comment 2 Lakshmi P Shanmugam CLA 2017-11-16 01:42:58 EST
Can you please provide a sample application to reproduce/debug the problem? What version of Eclipse do you use?
Comment 3 Lakshmi P Shanmugam CLA 2018-06-12 04:05:21 EDT
> Can you please provide a sample application to reproduce/debug the problem?
> What version of Eclipse do you use?

Ping!
Comment 4 Lakshmi P Shanmugam CLA 2018-08-28 08:00:34 EDT
Closing as there was no response. Please reopen if it happens with 4.8/4.9-I-builds.