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
Are these images all of small sizes? Do you think they will affect APhotoManager's performance?
In addition, getView() is a callback that is frequently invoked in the UI thread. since image decoding is of high time consumption, we can perform these operations in worker threads (e.g., via AsyncTask).
The text was updated successfully, but these errors were encountered:
k3b
changed the title
Images are decoded without checking image size
Images are decoded without checking image size when loaded from a Filemanager in a Nomedia-Folder
Dec 17, 2021
When loading an image, Google suggests us to resize the image before decoding them, so as to save memory resource.
https://developer.android.com/topic/performance/graphics/load-bitmap.html
However, in the code below, images are decoded directly without checking image size:
de.k3b.android.androFotoFinder.gallery.cursor.GalleryCursorAdapterFromArray.java getView() (line number: 120)
https://github.com/k3b/APhotoManager/blob/FDroid/app/src/main/java/de/k3b/android/androFotoFinder/gallery/cursor/GalleryCursorAdapterFromArray.java#L120
Are these images all of small sizes? Do you think they will affect APhotoManager's performance?
In addition, getView() is a callback that is frequently invoked in the UI thread. since image decoding is of high time consumption, we can perform these operations in worker threads (e.g., via AsyncTask).
The text was updated successfully, but these errors were encountered: