facebookincubator / spectrum

A client-side image transcoding library.

Home Page:https://libspectrum.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update FAQ for performance concerns (parallel computing)

Ethan1983 opened this issue · comments

I have used Renderscript in Android for better crop performance than using BitmapRegionDecoder, it was a trade-off between memory and performance.

It is not clear if spectrum offers any similar parallel computing in both Android and iOS. Please update the FAQ for clients to consider using this library.

Hi @Ethan1983, thanks for creating the issue.

I think the cropping of encoded files and the region decoding / bitmap cropping compare quite different flows. I'd be inclined to say that mentioning RenderScript might raise more confusion with a reader about the fact that Spectrum mainly caters encoded images.

What do you think?

It wasn't an apples to apples comparison just to point that parallel processing (Renderscript, Pixel Visual core DSPs, CUDA) helps reduce processing time. It would be good if performance trade off was documented and if there is any opt-in/opt-out API for clients in the encoding pipeline.

Based on this presentation, it seems like performance is traded for low size.
https://youtu.be/Lb5H6_vCEok?t=1639

Hey @Ethan1983, I've added an item to the FAQ :) thanks for the suggestion