Community
Participate
Working Groups
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=467499#c20
New Gerrit change created: https://git.eclipse.org/r/62114
Do you have numbers that show how much we gain with this?
(In reply to Dani Megert from comment #2) > Do you have numbers that show how much we gain with this? It depends on the number of annotations in a project(s), the number of activated editors... In my opinion, performance improvement can be significant if a user has big projects and a lot of opened editors.
(In reply to Snjezana Peco from comment #3) > (In reply to Dani Megert from comment #2) > > Do you have numbers that show how much we gain with this? > > It depends on the number of annotations in a project(s), the number of > activated editors... > In my opinion, performance improvement can be significant if a user has big > projects and a lot of opened editors. Please provide a test case that allows to see it.
(In reply to Dani Megert from comment #4) > > Please provide a test case that allows to see it. You can try the test case described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=467499#c8 You would need to add a breakpoint to AnnotationRulerColumn.doubleBufferPaint and debug Eclipse PDE.
I confirm the steps & I think the patch makes lot of sense. I wonder it was unnoticed before. Steps to reproduce (from bug 467499 comment 8): - create a Java project - create a class A.java with some errors and/or warnings - create a class B.java without errors/warnings - open/activate A.java - open B.java - rebuild the project You will see that the annotations related to A.java are shown in the current editor (B.java). If you resize Eclipse window and rebuild the project, the annotations can appear in an unexpected place (within the editor or completely out of the editor area). For a non-GTK3 case (where the wrong artifacts aren't shown) the benefit of the patch is that rulers with annotations aren't repainted for *all* opened editors on build, but only for the visible, means: better UI performance in case of many open editors. I'm s still playing with the patch https://git.eclipse.org/r/62114/
*** This bug has been marked as a duplicate of bug 467499 ***