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 203920 - [71cat] LowPerformance 12s at org.netbeans.editor.BaseKit.getKeymap
Summary: [71cat] LowPerformance 12s at org.netbeans.editor.BaseKit.getKeymap
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2011-10-18 17:23 UTC by ytn01
Modified: 2012-11-08 02:54 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 166488


Attachments
nps snapshot (129.98 KB, application/nps)
2011-10-18 17:23 UTC, ytn01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ytn01 2011-10-18 17:23:04 UTC
Build: NetBeans IDE 7.1 Beta (Build 201109222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02-383, Java(TM) SE Runtime Environment, 1.6.0_26-b03-383-11A511c
OS: Mac OS X

User Comments:
GUEST: I was just opening my project.  I had a lot of tabs open though previously.

GUEST: esa lento al momento de iniciar el programa puesto que se pone a explorar los proyecto que se tienen

GUEST: i was just playing a music from windows media player

ytn01: Low performance report was generated just after the IDE was launched.
There were no opened projects, only standalone XML file was open from last session of the IDE.



Maximum slowness yet reported was 12255 ms, average is 6171
Comment 1 ytn01 2011-10-18 17:23:10 UTC
Created attachment 112189 [details]
nps snapshot
Comment 2 Marian Mirilovic 2012-06-05 08:42:17 UTC
8 ERs , also from 7.2 .... P3
Comment 3 Milutin Kristofic 2012-06-05 13:02:16 UTC
Keymap is waiting for a lock, which is slowed down by loading Jar file (in load actions). There is no space for improvement.
Comment 4 Marian Mirilovic 2012-06-05 13:04:19 UTC
I would say, we have problem with loading jars .. especially on Wins ...
Comment 5 Jaroslav Tulach 2012-06-07 09:33:45 UTC
If classloading is slow, then try to do it sooner than in AWT. There are various ways for an EditorKit to pre-load necessary data structures before it goes into "install" phase. For example XMLKit can implement Callable. Or editor can initialize getKeymap for all EditorKits.
Comment 6 Svata Dedic 2012-11-06 13:44:09 UTC
Changeset: fa3a22c850e9
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2012-11-06 14:44
Message:   Keymap is preinitialized in non-AWT thread.
Comment 7 Quality Engineering 2012-11-08 02:54:36 UTC
Integrated into 'main-golden', will be available in build *201211080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fa3a22c850e9
User: Svata Dedic <sdedic@netbeans.org>
Log: Issue #203920 - [71cat] LowPerformance 12s at org.netbeans.editor.BaseKit.getKeymap: fixed
Keymap is preinitialized in non-AWT thread.