Laszlo Kishalmi created NETBEANS-3666:
-----------------------------------------

             Summary: Excessive amount of CPU used in multitab UI
                 Key: NETBEANS-3666
                 URL: https://issues.apache.org/jira/browse/NETBEANS-3666
             Project: NetBeans
          Issue Type: Bug
          Components: ide - UI
            Reporter: Laszlo Kishalmi


It seems there is a performance bottleneck in multitabs implementation.

org.netbeans.core.multitabs.impl.TabDataRenderer.getPreferredWidth(Object) is 
being called several times spending considerable amount of time setting the 
text on a JLabel over and over:
 

[https://github.com/apache/netbeans/blob/06b3e677d9ea4dbd9987c8245fe5be776e8245f8/platform/core.multitabs/src/org/netbeans/core/multitabs/impl/TabDataRenderer.java#L144]

The purpose of these calls is to properly measure the width of the rendered 
component.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to