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 - Adding JARs to project classpath is unresponsive
Summary: Adding JARs to project classpath is unresponsive
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
Depends on: 47451 47975
Blocks:
  Show dependency tree
 
Reported: 2004-08-25 13:16 UTC by Antonin Nebuzelsky
Modified: 2004-10-26 03:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
3 thread dumps (33.52 KB, text/plain)
2004-08-25 13:16 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
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.