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 - low perfomance of IntToStringCache.getId()
Summary: low perfomance of IntToStringCache.getId()
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords: PERFORMANCE
Depends on: 127727
Blocks:
  Show dependency tree
 
Reported: 2007-12-14 08:32 UTC by Alexander Simon
Modified: 2008-03-24 02:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.