From: <cg...@cd...> - 2000-05-17 18:50:12
|
boi...@ex... said: > "Works like a charm"? That's not what my experience tells me. There > are a few cases where I would use weak refs but generally, I think > it's a poor design choice to rely on them. Weak refs? Soft refs! (or am I the one mixing them up this time? Normally= , I = can keep them apart :-)) Ok, I buy your JDK 1.1 argument, but for a JDK1.= 2 = environment soft refs are really a better choice. It's a cache so you rea= lly = don't care anyway what is thrown out when, and by soft-reffing your cache= = entries all your caches will be treated as one giant LRU cache, with the = oldest entries in any given "local" cache being kicked out first. That's = quite = hard to do by yourself, and caching stuff yourself, not taking into = consideration what's going on elsewhere in the JVM might be considered a = bit = selfish... > salud, amor, dinero :) =A1y el tiempo para gastar lo! Cees -- = Cees de Groot http://www.cdegroot.com <cg...@cd...>= GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B Forge your CipherSaber and list it: http://www.xs4all.nl/~cg/ciphersaber/= |