News for hackers. Stuff that matters.
Re:FastImageCache – iOS library for quickly displaying image... by rbritton on Monday October 21, 2013 @11:03PM (#6589560)
As they made some note of, Core Animation is very picky about the image format you provide via the contents property. For example, if you retain a reference to a CGImageRef that you also assign to a CALayer's contents property, you will end up with at least double the memory usage if it's not in CA's preferred format and it makes a copy of it. In my experience doing that alone can help performance immensely.

I've since lost track of the Apple documentation that said it, but CA prefers 16-byte alignment and (kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Little) for the pixel format.

Re:FastImageCache – iOS library for quickly displaying image... by nielsbot on Tuesday October 22, 2013 @02:10AM (#6590055)
I think it can change from device to device too