[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Does ScopeKey need to maintain a sorted (in ScopeLevel.l
jason.greene@jboss.com
do-not-reply at jboss.com
Wed Aug 5 17:50:49 EDT 2009
This class should *definitely* be immutable. Then all synchronization can be removed. The memory footprint of this class could also be reduced quite a bit if it used an array (or arraylist) instead of a treemap. The only issue is the perf of getScopeLevel, but we have such a small number of fixed levels that there probably is no noticeable perf diff using a treemap.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248254#4248254
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248254
More information about the jboss-dev-forums
mailing list