NightWhistler / PageTurner

Android e-book reader with cloud synchronization
pageturner-reader.org
GNU General Public License v3.0
466 stars 222 forks source link

Use a disk-based cache for TextLoader #428

Open NightWhistler opened 11 years ago

NightWhistler commented 11 years ago

This article

http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html

describes use of a LruCache and a disk-based cache for caching of images. This approach would probably work well both in the TextLoader and for the Catalog / library.

NightWhistler commented 10 years ago

Closing this for now as I've gone with a SoftReference based approach.

NightWhistler commented 10 years ago

And today I learned that on Android a SoftReference pretty much behaves as a WeakReference, making it completely and utterly useless.

LruCache might still be useful for the Catalog and Library, but for the TextLoader we'll need a more sophisticated approach.