[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Does ScopeKey need to maintain a sorted (in ScopeLevel.l
david.lloyd@jboss.com
do-not-reply at jboss.com
Wed Aug 5 18:54:52 EDT 2009
"jason.greene at jboss.com" wrote : . 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.
If you keep the array or arraylist sorted, you can get the same O(log n)-type performance by using e.g. Arrays.binarySearch()....
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248262#4248262
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248262
More information about the jboss-dev-forums
mailing list