eclipse.platform.swt
eclipse.platform.swt copied to clipboard
slow StyledTextRenderer for unicode and unprintable control characters
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.