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.
Development build #200304102350 of NetBeans 3.5 Windows 2000 with JDK 1.4.1 build #21 Description: ============ It takes pretty long time to display mounting wizard after it is invoked from menu. Quickly measured it is about 8 seconds ! I am attaching set of thread dumps taken during this period. IDE takes nearly 100% CPU and is irresponsive. Steps to reproduce: =================== 1. Just invoke "Versioning|Mount Version Control|Generic VCS" item from main menu.
This is serious preformance regression.
Created attachment 9870 [details] Several thread dumps taken during wizard invocation.
Fixed in the main trunk, the object integrity support is initialized lazily not to block the filesystem instantiation: /cvs/vcscore/src/org/netbeans/modules/vcscore/objectintegrity/IntegritySupportMaintainer.java,v <-- IntegritySupportMaintainer.java new revision: 1.3; previous revision: 1.2 /cvs/vcscore/src/org/netbeans/modules/vcscore/objectintegrity/VcsObjectIntegritySupport.java,v <-- VcsObjectIntegritySupport.java new revision: 1.11; previous revision: 1.10
Created attachment 9904 [details] The binary patch. Put into <NB-install>/modules/autoload/patches/org-netbeans-modules-vcscore/ folder.
Created attachment 9905 [details] The contextual diff, that fix this problem.
I am sorry but this does not work. I got two exceptions and lost my filesystems.
Created attachment 9908 [details] Here are those exceptions ...
Created attachment 9910 [details] Hm, probably this is what I should attach, I apologize ... :-(
Well, the first patch assumed some other patch which is already in the main trunk. I'm going to attach a new one, that should work with current NB 3.5 / S1S 5.0.
Created attachment 9911 [details] A new binary patch. Put into <NB-install>/modules/autoload/patches/org-netbeans-modules-vcscore/ folder.
Sorry, nothing has changed i.e. still takes looong time. :-)
Created attachment 9912 [details] Attaching thread dump while invocation of the wizard ...
Hmm, there is one more thing, that triggered the loading process. I'm going to improve the fix...
So the initialization is done even more lazily. Fixed in the main trunk: /cvs/vcscore/src/org/netbeans/modules/vcscore/objectintegrity/VcsObjectIntegritySupport.java,v <-- VcsObjectIntegritySupport.java new revision: 1.12; previous revision: 1.11
Created attachment 9920 [details] A new binary patch. Put into <NB-install>/modules/autoload/patches/org-netbeans-modules-vcscore/ folder.
Hm, this is great. I haven't noticed any performance delay at all ! Where did you Martin hide it ? Verified with the last version of the patch in development build #200304132350 of NetBeans 3.5.
Created attachment 9923 [details] The new contextual diff of the fix.
Code reviewed without objections.
approved for 3.5
Thanks for the review, verification and approval. The problem is fixed in release35 branch: Checking in org/netbeans/modules/vcscore/objectintegrity/IntegritySupportMaintainer.java; /shared/data/helm/cvs/repository/vcscore/src/org/netbeans/modules/vcscore/objectintegrity/IntegritySupportMaintainer.java,v <-- IntegritySupportMaintainer.java new revision: 1.1.2.3; previous revision: 1.1.2.2 done Checking in org/netbeans/modules/vcscore/objectintegrity/VcsObjectIntegritySupport.java; /shared/data/helm/cvs/repository/vcscore/src/org/netbeans/modules/vcscore/objectintegrity/VcsObjectIntegritySupport.java,v <-- VcsObjectIntegritySupport.java new revision: 1.2.2.6; previous revision: 1.2.2.5 done
Great, no performance degradation. Verified in Sun ONE Studio 5.0 Standard Edition build #030528.