Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 108159 - Classpath scanning takes too long
Classpath scanning takes too long
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: Source
6.x
All All
: P2 with 1 vote (vote)
: 6.x
Assigned To: Tomas Zezula
issues@java
http://ui.netbeans.org/usability/edit...
: PERFORMANCE
Depends on: 140680
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-26 15:20 UTC by jrojcek
Modified: 2016-12-02 11:45 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jrojcek 2007-06-26 15:20:58 UTC
A participant commented that scanning of classpath takes too long. He mentioned that in Eclipse it's faster.

Recommendation:

Compare our classpath scanning to Eclipse. Maybe it's just a perception of slow progress because when the classpath is scanned the very first time it blocks 
opening of the first project, so it looks like the whole IDE is stuck for a while.
Comment 1 Tomas Zezula 2007-09-19 14:53:48 UTC
The speed of initial scan was improved from the time of UI study.
Comment 2 Tomas Pavek 2008-04-25 14:10:27 UTC
We did a comparison to Eclipse - it is really faster.
We talked both about how to improve the raw performance of the scanning as well as how to improve the user experience
during the scanning. Let's keep this issue to track the raw performance improvements.

One idea was to optimize disk touches when comparing source file time stamps with cached files. This should help after
the cold start (i.e. files touched for the first time). There should be more space for improvements - just needs more
investigation.
Comment 3 Pavel Flaska 2008-07-31 11:31:02 UTC
Now it should be much better, see mesurements (up-to-date checking section):
http://wiki.netbeans.org/JavaScanDesc
Comment 4 lukehutch 2016-12-02 11:45:54 UTC
Feel free to try my library, FastClasspathScanner, to improve classpath scanning speed -- it is parallelized and highly optimized:

https://github.com/lukehutch/fast-classpath-scanner

I would be curious to see benchmarks comparing the updated NetBeans scanner and Eclipse to FastClasspathScanner.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo