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 47910

Summary: Adding JARs to project classpath is unresponsive
Product: projects Reporter: Antonin Nebuzelsky <anebuzelsky>
Component: Generic InfrastructureAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: blocker CC: issues
Priority: P2 Keywords: PERFORMANCE
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 47451, 47975    
Bug Blocks:    
Attachments: 3 thread dumps

Description Antonin Nebuzelsky 2004-08-25 13:16:23 UTC
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.
Comment 1 Antonin Nebuzelsky 2004-08-25 13:16:47 UTC
Created attachment 17131 [details]
3 thread dumps
Comment 2 Jesse Glick 2004-08-25 19:13:38 UTC
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.
Comment 3 Jesse Glick 2004-08-26 03:57:07 UTC
Various small things I am trying to fix.

Note that time may be a bit faster with assertions off (true in a
release build).
Comment 4 Jesse Glick 2004-08-26 22:14:26 UTC
After some fixes (not including #47451), 100 JARs are added in under
three seconds (then the classpath scanner starts up).
Comment 5 Jesse Glick 2004-08-26 22:15:24 UTC
Or under one second after it has been warmed up once.
Comment 6 Jesse Glick 2004-08-26 22:21:30 UTC
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
Comment 7 Jesse Glick 2004-10-26 03:36:10 UTC
See issue #50546 for further developments.