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 108159 - Classpath scanning takes too long
Summary: Classpath scanning takes too long
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Tomas Zezula
Depends on: 140680
  Show dependency tree
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
Exception Reporter:


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.


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
Comment 3 Pavel Flaska 2008-07-31 11:31:02 UTC
Now it should be much better, see mesurements (up-to-date checking section):
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:

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