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.

Bug 227844 - org.netbeans.core.multiview.MultiViewPeer.peerComponentShowing: LowPerformance took 65156 ms.
Summary: org.netbeans.core.multiview.MultiViewPeer.peerComponentShowing: LowPerformanc...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-03-23 05:06 UTC by Exceptions Reporter
Modified: 2017-09-21 19:17 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 199491


Attachments
nps snapshot (423.42 KB, application/nps)
2013-03-23 05:07 UTC, Exceptions Reporter
Details
nps snapshot (225.33 KB, application/nps)
2013-04-26 18:13 UTC, ridha
Details
nps snapshot (109.08 KB, application/nps)
2013-05-17 06:13 UTC, carduelis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-03-23 05:06:56 UTC
Build: NetBeans IDE 7.3 (Build 201302261559)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_13-b20
OS: Windows XP

User Comments:
GUEST: Netbeans gestartet

GUEST: Opening Netbeans



Maximum slowness yet reported was 65156 ms, average is 45409
Comment 1 Exceptions Reporter 2013-03-23 05:07:01 UTC
Created attachment 132970 [details]
nps snapshot
Comment 2 Stanislav Aubrecht 2013-03-25 09:31:23 UTC
FormEditorSupport.JavaEditorTopComponent.getToolbarRepresentation() waits for editor pane to be initialized.
Comment 3 ridha 2013-04-26 18:13:24 UTC
Created attachment 133859 [details]
nps snapshot
Comment 4 carduelis 2013-05-17 06:13:59 UTC
Created attachment 134553 [details]
nps snapshot

startup of NB
Comment 5 Tomas Pavek 2013-07-09 17:03:14 UTC
As mentioned above, FormEditorSupport.JavaEditorTopComponent.getToolbarRepresentation() waits for editor pane to be initialized. But how else it should get the toolbar?

The code is:

JEditorPane pane = getEditorPane();
if (pane != null) {
    Document doc = pane.getDocument();
    if (doc instanceof NbDocument.CustomToolbar) {
        toolbar = ((NbDocument.CustomToolbar)doc).createToolbar(pane);
    }
}

It's the CloneableEditor.getEditorPane() that is slow, yet requires to be called in EDT. I don't see what could be done with this on GUI builder side, if anybody knows please let me know. Is there a way to get to the document/toolbar out of EDT?