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.
Go to project properties and add several JARs onto compile classpath. Confirm and close the project properties. IDE freezes for a while, then scanning project classpath starts. On my machine (PIII 800MHz) the freezing takes 1531ms for 10 JARs, 2469ms for 20 JARs, 5312ms for 50 JARs See the attachment with three thread dumps taken during the freeze.
Created attachment 17131 [details] 3 thread dumps
First thread dump is caused by issue #47451. The other two don't look like anything special (and they are different), so the thread dumps are not much help. Profiler output is needed for that.
Various small things I am trying to fix. Note that time may be a bit faster with assertions off (true in a release build).
After some fixes (not including #47451), 100 JARs are added in under three seconds (then the classpath scanner starts up).
Or under one second after it has been warmed up once.
Marking fixed excepting performance component of #47451. committed * Up-To-Date 1.9 ant/project/src/org/netbeans/spi/project/support/ant/EditableProperties.java committed * Up-To-Date 1.9 ant/project/src/org/netbeans/spi/project/support/ant/ProjectProperties.java committed * Up-To-Date 1.21 ant/project/src/org/netbeans/spi/project/support/ant/PropertyUtils.java committed * Up-To-Date 1.18 ant/project/src/org/netbeans/spi/project/support/ant/ReferenceHelper.java committed * Up-To-Date 1.6 java/api/src/org/netbeans/spi/java/classpath/support/ClassPathSupport.java committed * Up-To-Date 1.8 java/j2seplatform/src/org/netbeans/modules/java/j2seplatform/libraries/J2SELibrarySourceForBinaryQuery.java committed * Up-To-Date 1.27 java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/J2SEPhysicalViewProvider.java
See issue #50546 for further developments.