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 150192

Summary: JavaTypeProvider creates useless FileObjects
Product: java Reporter: Tomas Zezula <tzezula>
Component: SourceAssignee: Tomas Zezula <tzezula>
Status: VERIFIED FIXED    
Severity: blocker CC: dafreels, pflaska, sustaining
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Tomas Zezula 2008-10-15 11:00:09 UTC
The JavaTypeProvider creates lots of useless slow FileObjects which causes significant delay when Go To Type is used for first time after IDE start.
Comment 1 Tomas Zezula 2008-10-15 11:06:19 UTC
Info from David's log files:

Go to type for the first time took 10s after IDE start and in other invocations less than 3s.
1) The filesystem is cold, so the first access to the lucene indexes takes longer time (2-3s), we can't probably do anything
with this.
2) Even more time is spent in the call of ClassPath.getRoots(), something about 6s, I will rewrite it to use URLs.
Comment 2 Tomas Zezula 2008-10-15 14:15:27 UTC
http://hg.netbeans.org/main/rev/82ac8e19a14c
Comment 3 Quality Engineering 2008-10-16 04:11:16 UTC
Integrated into 'main-golden', will be available in build *200810160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/82ac8e19a14c
User: Tomas Zezula <tzezula@netbeans.org>
Log: #150192:JavaTypeProvider creates useless FileObjects
Comment 4 Jana Maleckova 2008-11-13 08:10:37 UTC
This issue has lower priority then P2, please enclose the evaluation why this fix should be a part of 65patch1. Thanks
Comment 5 Jiri Prox 2008-11-13 12:09:16 UTC
justification of patch: There was lot's of complaints about performance of Go To Type feature, this fix improves it. 
Comment 6 Jiri Prox 2008-11-20 10:29:36 UTC
v.
Comment 7 pslechta 2008-11-20 12:49:11 UTC
The fix has been backported into release65_fixes repository.

http://hg.netbeans.org/release65_fixes/rev/41c07306834f
Comment 8 Jiri Prox 2008-12-02 15:44:52 UTC
verified in patch