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 158881

Summary: Reduce number of test dependencies calculation
Product: apisupport Reporter: Pavel Flaska <pflaska>
Component: ProjectAssignee: Pavel Flaska <pflaska>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Recursive calls I.
When applying simple patch - getting name outside the loop

Description Pavel Flaska 2009-02-20 11:03:20 UTC
When profiling source queries, I've found huge number of project.getCodeNameBase() calls. They come from processing test
dependencies. It seems that simple fix can reduce this number and improve API support project opening up to 20%.
Comment 1 Pavel Flaska 2009-02-20 11:06:29 UTC
Created attachment 77196 [details]
Recursive calls I.
Comment 2 Pavel Flaska 2009-02-20 11:07:58 UTC
Created attachment 77197 [details]
When applying simple patch - getting name outside the loop
Comment 3 Pavel Flaska 2009-02-20 11:11:01 UTC
The pictures show the situation when java.source modules and its dependent projects are opened.
Comment 4 Pavel Flaska 2009-02-26 10:14:40 UTC
2dcb6756f53a
Comment 5 Quality Engineering 2009-03-02 20:55:57 UTC
Integrated into 'main-golden', will be available in build *200903021401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2dcb6756f53a
User: Pavel Flaska <pflaska@netbeans.org>
Log: #158881: reduce number of recursive calls