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 49956 - JavaEditor causes eager init of editor toolbars on startup
Summary: JavaEditor causes eager init of editor toolbars on startup
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 49990
  Show dependency tree
 
Reported: 2004-10-05 16:58 UTC by _ rkubacki
Modified: 2006-03-24 10:05 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
threaddumps from NavigationView constructor (14.15 KB, text/plain)
2004-10-20 15:04 UTC, _ rkubacki
Details
thread dumps from fold manager (5.82 KB, text/plain)
2004-10-20 15:48 UTC, _ rkubacki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2004-10-05 16:58:36 UTC
During IDE start JavaEditorComponent creates Timer
for each Java editor and schedules its execution
after short delay. This causes initialization of
editor pane including creating of toolbar for all
Java editors. We should schedule this timer only
for active component as the code triggered by this
is only improtant if the TC is active (creates/set
active nodes)
Comment 1 Martin Matula 2004-10-05 20:16:50 UTC
Tomas, please look at it.
Comment 2 _ rkubacki 2004-10-20 15:04:18 UTC
Created attachment 18403 [details]
threaddumps from NavigationView constructor
Comment 3 _ rkubacki 2004-10-20 15:06:18 UTC
The dumps from NavigationView are attached. The combo box is created
and addNotify is also called on them.
Comment 4 _ rkubacki 2004-10-20 15:48:51 UTC
Created attachment 18408 [details]
thread dumps from fold manager
Comment 5 _ rkubacki 2004-10-20 15:49:57 UTC
This timer also triggers update of fold hierachy that in turn request
resource parsing. Pretty bad.
Comment 6 Jan Pokorsky 2004-10-20 18:05:39 UTC
fixed in

/cvs/java/src/org/netbeans/modules/java/JavaEditor.java
new revision: 1.181; previous revision: 1.180
Comment 7 _ rkubacki 2004-10-21 10:14:05 UTC
Great, results from last build (200410201800) are significantly improved.
Comment 8 _ rkubacki 2004-10-25 08:56:54 UTC
Startup with 10 files opened on -
Win2K: 21.5 -> 19.6
Linux: 37 -> 24
Solaris 38 -> 29.5 (we're actually better than 3.6 on Solaris)