Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Pazderski2019-08-22 17:35:47 -0400
committerPaul Pazderski2019-09-15 13:41:14 -0400
commitac2adad7a6d0be0fc28293d34900f45781810acd (patch)
tree387f3ea9d8809d584dc51602b5ee95bac04d6478 /org.eclipse.text
parent7fc4132f090098be46067f34751a784e5290d18c (diff)
downloadeclipse.platform.text-master.tar.gz
eclipse.platform.text-master.tar.xz
eclipse.platform.text-master.zip
Bug 550350 - Improve performance of annotation ruler paint methodHEADI20190915-1800master
The old code gets particular bad when the range between lowest used and highest used layer grows. If someone decides to provide an Annotation with layer Integer.MAX_VALUE to get it always on top we get a serious performance issue. Old code iterates from lowest to highest used layer on each step checking for each annotation if it belongs to this layer. Even for all layers without any annotation. New code simply sort them by layer first and iterate straight over this list. Same result but much faster. Change-Id: I6d723207f4d12b1b10001034e82a9c9d741881ce Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
Diffstat (limited to 'org.eclipse.text')
0 files changed, 0 insertions, 0 deletions

Back to the top