毕加索V / S ImageLoader的V / S壁画VS滑翔 [英] Picasso v/s Imageloader v/s Fresco vs Glide

查看:144
本文介绍了毕加索V / S ImageLoader的V / S壁画VS滑翔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

结果:

  1. 毕加索V / S这里ImageLoader的区别 ...
  2. 有关图书馆信息 GLIDE这里...
  3. 现在,最近的Facebook发布了所谓新的图片库 壁画

问题:

  1. 在毕加索V / S ImageLoader的V / S壁画之间的区别是什么
  2. 我们什么时候可以使用滑翔
  3. 这是最好的图书馆使用。
  4. 如果每个图书馆都有自己的意义,它们是什么?
解决方案

我是工程师的壁画项目之一。所以,很显然我有偏见。

但你不相信我的话。我们已经发布了一个示例应用程序,它可以让你比较五个库的性能 - 壁画,毕加索,UIL,滑翔,和截击图像装载机 - 相映成趣。您可以在我们的GitHub库得到它。

我还应该指出的是,壁画可在Maven的中央,如 com.facebook.fresco:壁画

壁画提供了毕加索,UIL和滑翔还没有特点:

  1. 图片不存储在Java堆,但在ashmem堆。中间字节的缓冲区也存储在本机堆。这留下了很多更多的内存可供应用程序使用。它减少OutOfMemoryError异常的风险。这也减少了垃圾收集的应用程序都做量,从而获得更好的性能。
  2. 在渐进式JPEG图像流,就像在Web浏览器。
  3. 图片可以任何一处被裁切,而不仅仅是中心。
  4. JPEG图像本身大小。这避免OOMing的问题,而试图缩小图像。

有许多其他(查看我们的文档),但这些是最重要的。

Findings:

  1. Difference between Picasso v/s ImageLoader here ...
  2. Info about the library GLIDE here ...
  3. Now recently Facebook released new image library called Fresco


Questions:

  1. What is the difference between Picasso v/s Imageloader v/s Fresco
  2. When can we use Glide
  3. Which is the best library to use.
  4. If Each libraries have their own significance, what are they ?

解决方案

I am one of the engineers on the Fresco project. So obviously I'm biased.

But you don't have to take my word for it. We've released a sample app that allows you to compare the performance of five libraries - Fresco, Picasso, UIL, Glide, and Volley Image Loader - side by side. You can get it at our GitHub repo.

I should also point out that Fresco is available on Maven Central, as com.facebook.fresco:fresco.

Fresco offers features that Picasso, UIL, and Glide do not yet have:

  1. Images aren't stored in the Java heap, but in the ashmem heap. Intermediate byte buffers are also stored in the native heap. This leaves a lot more memory available for applications to use. It reduces the risk of OutOfMemoryErrors. It also reduces the amount of garbage collection apps have to do, leading to better performance.
  2. Progressive JPEG images can be streamed, just like in a web browser.
  3. Images can be cropped around any point, not just the centre.
  4. JPEG images can be resized natively. This avoid the problem of OOMing while trying to downsize an image.

There are many others (see our documentation), but these are the most important.

这篇关于毕加索V / S ImageLoader的V / S壁画VS滑翔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆