Fresco和Glide比较

作者: 安卓程序猿 | 来源:发表于2017-04-19 16:46 被阅读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
美团 蘑菇街
拼多多 返利网
贝贝 楚楚街
卷皮 一号店
聚美优品 国美在线
淘粉吧 网易考拉
洋码头 -
有货 -

相关文章

网友评论

    本文标题:Fresco和Glide比较

    本文链接:https://www.haomeiwen.com/subject/phlhzttx.html