缓冲Bitmaps
来源:互联网 发布:刘诗诗婚纱同款 淘宝 编辑:程序博客网 时间:2024/05/22 06:59
最近在看Android Develop SDK,在讲Bitmap的缓冲时,我看到下面的这段话:
Note: In the past, a popular memory cache implementation was a SoftReference
or WeakReference
bitmap cache, however this is not recommended. Starting from Android 2.3 (API Level 9) the garbage collector is more aggressive with collecting soft/weak references which makes them fairly ineffective. In addition, prior to Android 3.0 (API Level 11), the backing data of a bitmap was stored in native memory which is not released in a predictable manner, potentially causing an application to briefly exceed its memory limits and crash.
SDK不再推荐SoftReference或者WeakReference来做Bitmap的缓冲,而是推荐LruCache来实现Memory Cache,另外SDK还提到,Memory Cache可以结合Disk Cache来实现更好的效果
- 缓冲Bitmaps
- Bitmaps
- Caching Bitmaps
- Caching Bitmaps
- Caching Bitmaps
- Caching Bitmaps
- Caching Bitmaps
- Caching Bitmaps
- Caching Bitmaps
- Caching Bitmaps
- 掌握Bitmaps
- 缓冲
- 缓冲
- 缓冲
- 缓冲
- 缓冲
- Displaying Bitmaps Efficiently(3)-Caching Bitmaps
- Displaying Bitmaps Efficiently -Loading Large Bitmaps Efficiently
- Android 二级菜单
- mysql case when update 更新顺序
- Java语言深入-关于Java语言的内存泄漏
- 微信开放平台表达了张小龙怎样的世界观?
- cocos2d-x 一道简单面试题,触摸事件的重新分发
- 缓冲Bitmaps
- Android滑动菜单特效(半路上停下来了)
- ASP.NET----My97DatePicker日历组件在ASP.NET中的使用
- python 对象 类
- maven hibernate版本冲突报错
- ios有关时间打印出来差8小时的问题
- python 抽象
- RHEL6.3克隆虚拟机后的网卡启动失败问题解析
- python 条件,循环和其他语句