I have a image named image@2x.png
.The file is 1KB in size.
My app is a iPhone-only app.
I load the image in my app with this call:
[UIImage imageNamed:@"image"];
When using I/O activity instrument analyzing the I/O activities, I found that there are several activities relating to this file which result in "No such file or directory" error, and these activities do take some time.
these activities are like 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, every failed operations takes more time than the one succeeded.
How can I avoid this kind of performance issue?