Re: Reuse of Java instances that have the same value

2014-03-29 Thread James Reeves
What about memoizing (clojure.core/memoize) the function that creates the leaves? - James On 29 March 2014 11:36, wrote: > Hi all, > > maybe someone here can point me to the right direction. I have a large > lookup tree (millions of entries), but the values in the leafs don't > contain much in

Reuse of Java instances that have the same value

2014-03-29 Thread vtekal
Hi all, maybe someone here can point me to the right direction. I have a large lookup tree (millions of entries), but the values in the leafs don't contain much information. That is, the number of unique values stored in leafs is rather small, same values are used over and over again. I load th