Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be careful! image-rs is so slow #4

Closed
DCjanus opened this issue Aug 4, 2019 · 2 comments
Closed

Be careful! image-rs is so slow #4

DCjanus opened this issue Aug 4, 2019 · 2 comments

Comments

@DCjanus
Copy link

DCjanus commented Aug 4, 2019

I've seen this post and found this repo.

I noticed that you are using image-rs in this repo, and I got to say, image-rs is very slow, see this issue and this line.

In my test case, sometimes it's even slower than the Go standard library.(too many memory alloc).

If you want to improve this crate, it might be a good idea to find another image crate.

But I am not concerned about the image processing, so I don't know if there is such a crate in Rust.

@Shnatsel
Copy link

image has improved considerably since. The issue you've linked is now fixed, and PNG decoding in particular should now competitive with pure libpng, starting with png crate version 0.16.5. In my tests decoding a PNG and writing it out in uncompressed form via image-rs is 10x faster than imagemagick.

JPEG decoding could still be improved though: image-rs/jpeg-decoder#155

@DCjanus
Copy link
Author

DCjanus commented Jun 22, 2020

Good News!

@DCjanus DCjanus closed this as completed Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants