Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3666

Excessive amount of CPU used in multitab UI

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              devcharly Karl Tauber
              lkishalmi Laszlo Kishalmi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h