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
Is your feature request related to a problem? Please describe.
Users on iPhones (any current iPhone / iOS including 17) when choosing to view albums experience long loading times about 0.075 seconds per album before albums display. For example, a user with iOS 17.0.2 on an iPhone 13, with 280 albums experiences a load delay of ~22 seconds. A typical user may have about 10 to 50 albums and will experience a 1 to 3 second delay.
Describe the solution you'd like
I'm requesting a configuration option to pre-cache the albums or a refactor to make the code that loads the albums, YPAlbumsManager.fetchAlbums(), faster. The call to PHImageManager.default().requestImage is slow.
Describe alternatives you've considered
I already attempted pre-caching the albums in YPPickerVC, but by that point, the user may already want to see albums and the pre-caching will not complete in time. Currently, the speed is doubled by using options.deliveryMode = .fastFormat vs the current .opportunistic for PHImageRequestOptions, so I'm using that setting for now. I may also create a single instance of YPImagePicker within my app, load the albums (requires exposing YPAlbumsManager.fetchAlbums), and reuse the picker as needed. Please let me know if there are other suggestions or workarounds.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Users on iPhones (any current iPhone / iOS including 17) when choosing to view albums experience long loading times about 0.075 seconds per album before albums display. For example, a user with iOS 17.0.2 on an iPhone 13, with 280 albums experiences a load delay of ~22 seconds. A typical user may have about 10 to 50 albums and will experience a 1 to 3 second delay.
Describe the solution you'd like
I'm requesting a configuration option to pre-cache the albums or a refactor to make the code that loads the albums,
YPAlbumsManager.fetchAlbums()
, faster. The call toPHImageManager.default().requestImage
is slow.Describe alternatives you've considered
I already attempted pre-caching the albums in YPPickerVC, but by that point, the user may already want to see albums and the pre-caching will not complete in time. Currently, the speed is doubled by using
options.deliveryMode = .fastFormat
vs the current.opportunistic
forPHImageRequestOptions
, so I'm using that setting for now. I may also create a single instance of YPImagePicker within my app, load the albums (requires exposingYPAlbumsManager.fetchAlbums
), and reuse the picker as needed. Please let me know if there are other suggestions or workarounds.The text was updated successfully, but these errors were encountered: