<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>图片 | Hessian's Blog</title><link>https://hessian.cn/tag/%E5%9B%BE%E7%89%87</link><description>Hessian 的技术笔记：Linux、C++、网络与嵌入式</description><language>zh-CN</language><atom:link href="https://hessian.cn/tag/%E5%9B%BE%E7%89%87/index.xml" rel="self" type="application/rss+xml"/><item><title>[转]Android技术积累：图片缓存管理</title><link>https://hessian.cn/p/1074.html</link><pubDate>Sat, 30 Mar 2013 23:02:44 +0800</pubDate><guid>https://hessian.cn/p/1074.html</guid><description>转自：http://keegan-lee.diandian.com/post/2012-12-06/40047548955&#10; &#10;如果每次加载同一张图片都要从网络获取，那代价实在太大了。所以同一张图片只要从网络获取一次就够了，然后在本地缓存起来，之后加载同一张图片时就从缓存中加载就可以了。从内存缓存读取图片是最快的，但是因为内存容量有限，所以最好再加上文件缓存。文件缓存空间也不是无限大的，容量越大读取效率越低，因此可以设置一个限定大小比如10M，或者限定保存时间比如一天。&#10;</description></item></channel></rss>