150x image processing speedup with zune-image
#181
SalOne22
started this conversation in
Show and tell
Replies: 1 comment
-
Lessgoo, really nice encouragement here. I designed the library to be fast and extendable, really nice to see it play that way. The api may be clumsy sometimes, but really nice to see it work this well, hope there weren't any huge hurdles. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While building my image optimization tool, I experimented with various image processing libraries. My initial attempt was homemade, but it proved buggy and hard to maintain. Switching to the
image
crate improved stability and performance.However, I recently discovered
zune-image
, and it's a game changer! By leveraging zune-image's pipeline, I've achieved a significant performance leap. For single images, processing speeds are now up to 15 times faster compared to the previous version.The real magic happens with batch processing. When optimizing around 15 images simultaneously on an 8-core system, zune-image delivers a staggering 150x speed increase. This translates to significant time savings, especially when dealing with large image sets.
My next steps is to optimize custom encoders and operations for even greater efficiency. In the latest pre-release of
rimage
, I've already builded custom encoders, decoders for AVIF and WebP formats, and MozJpeg with OxiPNG codecs. Additionally, I'm utilizing thefast_image_resize
crate for incredibly fast resizing andlibimagequant
for quantization routines. With full release, all of this will be available forzune-image
users.Beta Was this translation helpful? Give feedback.
All reactions