Fresco和Glide比较
2017-04-19 本文已影响159人
安卓程序猿
欢迎搜索微信公众号SamuelAndroid关注我, 定期推送Android相关知识!
Fresco
(-)
- Huge size of library
- Difficult to use
- No Callback with View, Bitmap parameters
- SimpleDraweeView doesn't support wrap_content
- Huge size of cache
(+)
- Pretty fast image loader (for small && medium images)
- A lot of functionality(streaming, drawing tools, memory management, etc)
- Possibility to setup directly in xml (for example round corners)
- Pretty memory manager
- GIF support
- WebP support
Glide
(-)
- Big size of library
(+)
- Pretty fast image loader (for large images)
- Tinny size of cache
- Simple in use
- GIF support
- WebP support
- Fast loading big images from internet into ListView
- UI is not freeze
- BitmapPool to re-use memory and thus lesser GC events
一、从热度、Stars数、代码质量等比较,点我查看更多,如下图:
二、主流电商平台图片加载框架使用情况分析
选择应用宝排名靠前的50个APK进行反编译,结果如下:
Glide | Fresco |
---|---|
美团 | 蘑菇街 |
拼多多 | 返利网 |
贝贝 | 楚楚街 |
卷皮 | 一号店 |
聚美优品 | 国美在线 |
淘粉吧 | 网易考拉 |
洋码头 | - |
有货 | - |