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 212746 - 1s on start wasted in search initialization on start
Summary: 1s on start wasted in search initialization on start
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-20 08:50 UTC by Jaroslav Tulach
Modified: 2012-05-24 05:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Snapshot from a real cold start on my computer (389.73 KB, application/octet-stream)
2012-05-20 08:50 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2012-05-20 08:50:18 UTC
Created attachment 119653 [details]
Snapshot from a real cold start on my computer

The snapshot seems to indicate that

org.netbeans.modules.search.Installer.restored()	1 172 ms 	212 ms

wastes 1s waiting for initialization of window system. Please avoid usage of Installer.restored if possible. Preferably do nothing on start. Or maybe @OnShowing annotation is what you are looking for.
Comment 1 Jaroslav Havlin 2012-05-21 09:09:39 UTC
http://hg.netbeans.org/core-main/rev/05a9295c1efc
Fixed. Thank you for the hint.
Comment 2 Jesse Glick 2012-05-22 15:14:34 UTC
You need to make Installer no longer extend ModuleInstall, and remove OpenIDE-Module-Install from the manifest. Use @OnStop instead of uninstalled() (assuming this really needs to be done at all).
Comment 3 Quality Engineering 2012-05-22 16:05:38 UTC
Integrated into 'main-golden', will be available in build *201205220903* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/05a9295c1efc
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #212746 - 1s on start wasted in search initialization on start
Comment 4 Jaroslav Havlin 2012-05-23 10:04:34 UTC
http://hg.netbeans.org/core-main/rev/875a112e3d31

(In reply to comment #2)
> You need to make Installer no longer extend ModuleInstall, and remove
> OpenIDE-Module-Install from the manifest.
Fixed.

> Use @OnStop instead of uninstalled()
> (assuming this really needs to be done at all).
The clean-up is indeed unnecessary, removing it.
Comment 5 Quality Engineering 2012-05-24 05:30:18 UTC
Integrated into 'main-golden', will be available in build *201205240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/875a112e3d31
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #212746 - Remove unnecessary clean-up