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 227672 - Slow loading of window system (with real windows layout)
Summary: Slow loading of window system (with real windows layout)
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-03-19 18:10 UTC by Jaroslav Tulach
Modified: 2013-05-17 15:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Content of Windows2Local directory that I gathered over last few years (113.11 KB, application/zip)
2013-03-19 18:11 UTC, Jaroslav Tulach
Details
.npss file and .log to show where the start slows down (381.47 KB, application/zip)
2013-03-19 18:12 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2013-03-19 18:10:15 UTC
For a while I had a feeling that start of NetBeans is not well balanced. While loading of module system has been optimized via caches (and thus no parsing or reading of many files happen), the second part of start is somewhat slow.
As a result the start progress quickly moves to middle and then spend enormous time in the second part.

I suspected that the serialization/deserialization of window layout and components may be the problem. Today I managed to measure it. I'll attach sample config/Windows2Local content and .npss file with .log showing what is going on.
Comment 1 Jaroslav Tulach 2013-03-19 18:11:26 UTC
Created attachment 132797 [details]
Content of Windows2Local directory that I gathered over last few years
Comment 2 Jaroslav Tulach 2013-03-19 18:12:03 UTC
Created attachment 132798 [details]
.npss file and .log to show where the start slows down
Comment 3 Jaroslav Tulach 2013-03-19 19:04:44 UTC
In the previous snapshot the start takes 8s and 6s is spent in window system...
Comment 4 Jaroslav Tulach 2013-03-27 12:06:03 UTC
I've created a wiki page to analyse what is indide the self profiling snapshot and what could be the best way to speed things up.

http://wiki.netbeans.org/WindowSystemPersistenceSimplified
Comment 5 Stanislav Aubrecht 2013-04-03 13:30:48 UTC
TopComponents that are not showing on the screen are loaded lazily (after the main IDE window is showing): core-main c7f0be609dfc

Status line elements are created after the main IDE window is showing: core-main 13b3f2f3f7ca
Comment 6 Stanislav Aubrecht 2013-05-17 15:15:49 UTC
Closing, please reopen if more performance tweaks are needed.