I have an image named image@2x.png . 1 KB file. My application is an application for the iPhone.
I upload the image to my application with this call:
[UIImage imageNamed:@"image"];
When using the I / O activity tool that analyzes I / O actions, I found that there are several actions associated with this file that lead to the error "There is no such file or directory", and these actions take some time.
these actions are similar to reading these files:
image_2_only_@2x~iphone.png image@2x~iphone.png image@2x.png (this one doesn't fail)
And, to my surprise, each failed operation takes longer than one of them.
How can I avoid such a performance issue?
performance ios iphone uiimage
CarmeloS
source share