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.
Trying with dev build from May 10, JDK 1.5.0_02 The IDE with three J2SE projects start in 12 seconds but startup logging shows that 1 second is spent in module install of websvc registry. I do not know why initializes all plugins and J2EE platforms as I did not touched any websvc related functionality.
Radime, would it be possible to re-measure with latest build? We did some bigger changes in the jars and the registry loading (not directly aimed to fix this bug, this was another issue). It would help us to know if it's better or worse now. I'd say it should not load that many jars and that many plugins now, but who knows. Thanks.
You can get the numbers w/ -J-Dorg.netbeans.log.startup=print flag. It is not 1 second now but still 0.24 of 14 seconds. It means we spent almost 2% of startup here (including classpath scanning). I get these numbers whean starting IDE with two simple J2SE projects opened. I suggest to lower priority but still we should try to make it faster.
I think we can fix it. I'll attach new version of ModuleInstaller which loads jars on first request, so please confirm it fixes the perf problem (I checked with the flag and as far as I can say it does so - load time is 1ms). I'd like to hear your opinion before I integrate, and would like to pass it to QE first as well for sanity check so that I don't cause any regression.
Created attachment 24424 [details] New version of module installer.
Fix seems to not cause any regression.
nice from perf. point of view. Also if you could avoid Empty class (s/new Empty().getClass()/WebServiceModuleInstaller.class/) it would be even better.
Fixed in trunk: http://websvc.netbeans.org/source/browse/websvc/registry/src/org/netbeans/modules/websvc/registry/netbeans/WebServiceModuleInstaller.java?r1=1.11&r2=1.12 The Empty class seems to be really a minor issue. I didn't (quickly ;O) ) find an easy way of fixing it, so if you have any suggestion, you're welcome.
I've read your comment once more, so the Empty class is removed now ;O) http://websvc.netbeans.org/source/browse/websvc/registry/src/org/netbeans/modules/websvc/registry/netbeans/WebServiceModuleInstaller.java?r1=1.12&r2=1.13
v.