[
https://jira.jboss.org/jira/browse/JBCACHE-1082?page=com.atlassian.jira.p...
]
Manik Surtani resolved JBCACHE-1082.
------------------------------------
Fix Version/s: 3.0.0.GA
(was: 3.1.0)
Resolution: Done
Done using a SingletonMap and upgrading/downgrading where possible. Should result in a
*much* smaller memory footprint and possibly faster access times (I say possibly because
writes are a bit slower, in checking whether upgrading or downgrading the map is needed)
Optimise nodes for single elements
----------------------------------
Key: JBCACHE-1082
URL:
https://jira.jboss.org/jira/browse/JBCACHE-1082
Project: JBoss Cache
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Affects Versions: 2.0.0.CR1
Reporter: Manik Surtani
Assignee: Manik Surtani
Fix For: 3.0.0.GA
Attachments: ReplicatedPojoPerfTest.java, UnversionedNode.patch.txt
Many use cases just place a single object in a Node. Rather than going through the
memory and performance penalties of using Maps for a single entry, we should:
1) Create a reference to 2 Objects for key and value, as well as a Map.
2) Only initialise/construct the Map if Node.putAll() is called, or when Node.put() is
called with a second key/value pair
3) Otherwise just hold the key/value pair as direct object refs.
Would affect UnversionedNode and WorkspaceNodeImpl.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira