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: | 5s in ToolbarsListAction.getMenuPresenter() - need non-blocking ToolbarPool.getToolbars() | ||
---|---|---|---|
Product: | platform | Reporter: | nleck <nleck> |
Component: | Window System | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aldobrucale, alexvsimon, andreyv, apireviews, Chiana, Crerar, ehsaniara, jglick, jjoshi, jocke, joe_h5, jtulach, keichee, mmirilovic, nleck, rmartins, rweaver, saubrecht, Senkler, xylifyx |
Priority: | P3 | Keywords: | API_REVIEW_FAST, PERFORMANCE |
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 172532 |
Attachments: |
nps snapshot
Way to check if toolbar is initialized |
Description
nleck
2010-11-20 07:24:00 UTC
Created attachment 103126 [details]
nps snapshot
Can the org.netbeans.core.windows.actions.ToolbarsListAction.getMenuPresenter() method be rewritten to not call org.openide.awt.ToolbarPool.getToolbars() immediately? The whole call stack seems to come from a warm-up task soon after start. At this moment nobody needs the actual list of toolbars yet. As such just creating JMenu in ToolbarsListAction.getMenuPresenter() and filling it later (when the ToolbarPool.getToolbars() is already computed) will speed things up. (In reply to comment #2) > Can the > org.netbeans.core.windows.actions.ToolbarsListAction.getMenuPresenter() > method be rewritten to not call org.openide.awt.ToolbarPool.getToolbars() > immediately? sure, go ahead and do it:) Well, that is core.windows action. I have other things to do, so if you don't want to bother with it, keep the bug open and assigned to you. (In reply to comment #4) > Well, that is core.windows action. I have other things to do, so if you don't > want to bother with it, keep the bug open and assigned to you. you introduced this bug in changeset http://hg.netbeans.org/main/rev/1482ef3b369d so it's up to you to fix it. otherwise i'll just rollback that invalid changeset Aha. OK, I will try to do something with it then. Created attachment 110256 [details]
Way to check if toolbar is initialized
I guess, I can proceed. <summary> in apichanges is wrong. Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/02f13927a115 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #192207: Non-blocking way to obtain list of toolbar configurations Summary fixed in 97319d8bb296 |