You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2020/01/05 18:57:52 UTC

[GitHub] [netbeans] lkishalmi commented on a change in pull request #1848: [NETBEANS-3666] improve performance of multitabs on startup if many files are open

lkishalmi commented on a change in pull request #1848: [NETBEANS-3666] improve performance of multitabs on startup if many files are open
URL: https://github.com/apache/netbeans/pull/1848#discussion_r363110646
 
 

 ##########
 File path: platform/core.multitabs/src/org/netbeans/core/multitabs/impl/TabDataRenderer.java
 ##########
 @@ -141,6 +141,21 @@ int getPreferredWidth( Object value ) {
                     icon = i;
                 }
             }
+
+            // On startup, this method is invoked very often if many files are open
+            // (~60000 times for 200 open files).
+            // The text (usually a filename) always starts with "<html>",
+            // but does not contain other HTML tags.
+            // The HTML rendering makes startup slow (and CPU load high).
+            // To workaround this, remove the leading "<html>" if text does not
+            // contain HTML tags or entities.
+            String prefix = "<html>";
 
 Review comment:
   //NOI18N at the end of the line please.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists