Hi All,

I have adapted a SoftHashMap that I found online for use in my Android
application. I generate many thumbnails which use a lot of memory and are
easily traversed, I want to use an ADT like this so that I don't run out of
memory but do make use of the memory available. The cache is meant to retain
the most recently used items using hard links, the number of MRU hard links
is set via the constructor.

Can you let me know if there is a better way of doint this, any errors in my
design (Essentially lifted from
DevX<http://archive.devx.com/java/free/articles/Kabutz01/Kabutz01-2.asp>),
especially with respect to any differences in Dalvik or bonus classes in the
SDK which render it useless.

Otherwise, feel free to use it obviously :)

SoftHashMap.java<http://code.google.com/p/miffed/source/browse/trunk/miffed/src/uk/ac/ic/doc/gea05/miffed/adts/SoftHashMap.java?r=221>

Gav
<http://archive.devx.com/java/free/articles/Kabutz01/Kabutz01-2.asp>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to