[jboss-dev-forums] [Design of JBossCache] - Re: Space versus time, e.g. JBCACHE-1157
manik.surtani@jboss.com
do-not-reply at jboss.com
Wed Aug 22 15:11:46 EDT 2007
Another approach is to create a data structure that dynamically changes based on how the node is populated.
E.g., a CacheDataStructure may be a very light weight wrapper, which could create and hold a reference to a CHM only if the number of attributes crosses a threshold, and use simple object references for smaller numbers of attributes.
I've seen a lot of use cases where a node holds very few (<3) attribs, often only one.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077021#4077021
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077021
More information about the jboss-dev-forums
mailing list