You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A library exposes an image https link and a low-res placeholder represented by a ByteArray. During the download of the image I need to show the placeholder. Currently I'm creating an asyncImageLoader with as placeholder parameter a new asyncImageLoader with the byte Array as argument. But I'm worrying about the performance cost to instantiate 2 asyncImagePainters for every element in a list. So, there is a better way to do it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A library exposes an image https link and a low-res placeholder represented by a ByteArray. During the download of the image I need to show the placeholder. Currently I'm creating an asyncImageLoader with as placeholder parameter a new asyncImageLoader with the byte Array as argument. But I'm worrying about the performance cost to instantiate 2 asyncImagePainters for every element in a list. So, there is a better way to do it?
Beta Was this translation helpful? Give feedback.
All reactions