[jboss-user] [JBoss Cache: Core Edition] - Re: Config Question

manik.surtani@jboss.com do-not-reply at jboss.com
Wed Jul 16 07:07:41 EDT 2008


Adding an expiry time to intermediate nodes would help your situation, yes.  The only drawback is the extra storage (one more key/value pair per node in the path).

Regarding ranges, this depends on what you use as Fqns and what their hashcodes are like.  Basically, each node has a ConcurrentHashMap to hold all direct children.  The CHM is keyed on child name (Fqn.getLastElement() for the child's Fqn).  So, for example, if your Fqn elements are all Strings, then the CHM would be keyed on Strings.

Benchmarks here are of limited use since it really depends on the kind of Fqns you use and how well their hashcodes are spread.  If you do use something generic like Strings and you do decide to benchmark it, I guess it would be useful to share.

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

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



More information about the jboss-user mailing list