about offloading image decoding to a secondary thread. Is imageWithData thread safe? thanks
Conversation
Replying to
Yes. But that only offloads *deserialization*. Decoding happens lazily when the transaction using the image commits.
Replying to
(but you can decode the image on a bg thread by drawing the image into a CGContext b4 use, or using ImageIO API)
1
5
2
1
Show replies
Replying to
do you have a reference/document I could read about both processes? deserialization + decoding in this particular context
1
this may be of use to you: my UIKonf talk on image decoding, with working code examples: github.com/nicklockwood/P
4


