[jboss-dev-forums] [Design of JBossCache] - Re: JBCACHE-1154 - Introduce ability to mark nodes as reside

mircea.markus do-not-reply at jboss.com
Mon Sep 3 10:54:24 EDT 2007


anonymous wrote : and reduces node memory size (no need to add new boolean variables) - an boolean is hold on a bit. An RegularEnumSet aggregates an long (64 bit) + some caching arrays (other bits as well). From a memory POV it is optimal to aggregate booleans directly (than EnumSets wrapping enums). 

anonymous wrote : Reduces future changes of the Node interface (no need to add methods for a new feature) - code would be less readable; also I don't think this is an proper enum usage: i.e. define bounded types(the boolean variables are not logically related) -> enhance readability  

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

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



More information about the jboss-dev-forums mailing list