Hi,

We have the need to store XML in the cache with a Long value as the key. 

We can implement this in either of the following 2 ways:

(In the examples the key=123 and XML=

1. Each XML value has 1 node whose FQN is simply new Fqn(new Long(123L)) e.g. /123 

OR

2. We only have 1 node and store the data in the standard HashMap key/value way e.g. 
/ROOT   123,

Which is more efficient particularly as the number of objects in the cache grows?

Does 1 solution have a smaller memory footprint?

Many thanks again for your help,

regards

mark

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839499#3839499

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839499


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to