This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | org.netbeans.modules.findbugs.options.FindBugsPanel.<init>: LowPerformance took 3081 ms. | ||
---|---|---|---|
Product: | platform | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | Module System | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | jlahoda |
Priority: | P4 | Keywords: | PERFORMANCE |
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 198573 |
Attachments: | nps snapshot |
Description
Exceptions Reporter
2013-02-13 18:05:26 UTC
Created attachment 131357 [details]
nps snapshot
The constructor of FindBugsPanel does this: ---- defaultsToDisabled = cc != null; WORKER.post(new Runnable() { @Override public void run() { final TreeNode root = backgroundInit(); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { FindBugsPanel.this.removeAll(); FindBugsPanel.this.uiInit(filter, root, cc); } }); } }); setLayout(new GridBagLayout()); add(new JLabel(Bundle.LBL_Loading()), new GridBagConstraints()); ---- I don't know how it could do less, or how I could make it work faster. In fact, the snapshot shows 1238ms spent in this constructor, out of which 1174 is spent in JPanel's constructor, ultimately spent in classloading, which spends the time in opening the zip files. So I guess its the classloading that needs to be made faster. (Remaining 63.5ms is spent in Bundle.LBL_Loading() - I can stop using NbBundle.Messages, if that is desired.) The only way to deal with this is to preload the classes outside of EDT. Anyway it is 3s in 7.3beta, single report. Classifies at most to P4 and closing anyway while waiting for more reports. |