eclipse.platform.swt icon indicating copy to clipboard operation
eclipse.platform.swt copied to clipboard

slow StyledTextRenderer for unicode and unprintable control characters

Open jukzi opened this issue 2 years ago • 12 comments

On windows eclipse text editors sometimes lag when scrolling I sampled the times and see that most times is spend in TextLayout.getLineCount() which is called for every line in the handlePaint() loop.

As far as i understand the number of lines won't change while drawing so it should be enough to calculate the number of lines once.

image

jukzi avatar Sep 29 '22 05:09 jukzi