ios - Does the size of a placeholder image affect performance? -


at moment downloading images remotely using uiimageview category. while image downloading use placeholder image stored in xcassets folder.

is worth having multiple placeholder images different sizes: small, medium, , large? or worth having 1 placeholder image , using throughout application?

does size of placeholder image affect performance?

well, should have @2x , @3x version of images, mean less work cpu scale / down image on different devices. also, there technically work done cpu scale image or down. however, apple's graphics processor pretty efficient @ scaling images.

so technical answer "yes, affect performance", in reality not big enough difference notice.

now, if have built poorly written app displays hundreds of these placeholders in uiscrollview instead of form of uicollectionview (which displays on screen, or on screen), notice slight performance difference images adds large performance difference.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -