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 124010

Summary: low perfomance of IntToStringCache.getId()
Product: cnd Reporter: Alexander Simon <alexvsimon>
Component: Code ModelAssignee: Vladimir Kvashin <vkvashin>
Status: RESOLVED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 127727    
Bug Blocks:    

Description Alexander Simon 2007-12-14 08:32:31 UTC
Method consumes about 11% of all parsing time om large projects.
Because method use sequential search in list.
(Example: uts from OpenSolaris contains 5000 elements in list)
Rewrite class to improve performance.
Comment 1 Alexander Simon 2008-01-14 09:22:24 UTC
fixing: added last search cache. It improves performance in 10 times.
But method still is contained in hot spot (consume 2% of time by JourKit profiler on Open Solaris sources).
Downgrade to P3.

CVS log:

Checking in IntToStringCache.java;
/shared/data/ccvs/repository/cnd/repository/src/org/netbeans/modules/cnd/repository/util/IntToStringCache.java,v  <-- 
IntToStringCache.java
new revision: 1.7; previous revision: 1.6
done
Comment 2 Alexander Simon 2008-01-14 09:25:10 UTC
Take into account this issue when repository will be refactored.
Comment 3 Vladimir Kvashin 2008-03-24 02:47:37 UTC
Alexander reduced time spent in this function 10 times.
It isn't now a hot spot.
So I believe the issue is fixed.