Any way to encode a PNG faster than UIImagePNGRepresentation?
I'm generating a bunch of tiles for CATiledLayer . It takes about 11 seconds to generate 120 tiles at 256 x 256 with 4 levels of detail on an iPhone 4S. The image itself fits within 2048 x 2048. My bottleneck is UIImagePNGRepresentation . It takes about 0.10-0.15 seconds to generate every 256 x 256 image. I've tried generating multiple tiles on different background queue's, but this only cuts it down to about 9-10 seconds. I've also tried using the ImageIO framework with code like this: - (void)writeCGImage:(CGImageRef)image toURL:(NSURL*)url andOptions:(CFDictionaryRef) options {