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 51512 - High redundancy in ValuesObject
Summary: High redundancy in ValuesObject
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-15 11:13 UTC by Petr Nejedly
Modified: 2010-09-23 09:14 UTC (History)
3 users (show)

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 Petr Nejedly 2004-11-15 11:13:01 UTC
ValuesObjects seems to be related to structure
(type) of given MDR instance. Because about all of
the MDR instances in the IDE are of the same type
(org-netbeans-java, v0.61), all the ValuesObject
instances look the same. They contain the same
instances of values (typically constant Strings),
but for each such a value, there is private
instance of HashMap$Entry, instance of Integer and
space needed in containers.

I have compared two such ValuesObject instances
and they had exactly same content except element
#13, which was a nested ArrayList. But the nested
ArrayList had exactly the same content again, so
both the list and map values of all ValuesObject
instances in the IDE are equals().
They waste ~7KB of heap per classpath root, which
is ~2MB for my big scenario of nbbuild/misc.
Comment 1 Marian Mirilovic 2006-12-04 22:11:57 UTC
I think all of these issues are going to be closed, aren't they?
Comment 2 Jaroslav Tulach 2009-05-15 12:05:40 UTC
Performance team no longer cares about mdr.
Comment 3 David Strupl 2010-09-23 09:14:20 UTC
I am closing all reports in category Java/Unsupported as wontfix. These should
be dead issues --- if the reported cases are against some live part of the
NetBeans IDE please reopen and we can discuss to which category they belong.