Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the performance and speed of loading large numbers of assets #84

Merged
merged 4 commits into from
Aug 19, 2020

Conversation

gezihuzi
Copy link
Contributor

By replacing assetArray with fetchResult, we can optimize the loading performance so that we don't need to get all the assets from objects(at: indexSet), but from object(at:) according to the actual need. Performance has improved significantly, there is still some unfinished work, I use TODO to mark unfinished work, as the changes are large and require several complete tests to identify potential problems.

Very slow opening of picker when media is over 8K #62

@gezihuzi
Copy link
Contributor Author

gezihuzi commented Aug 16, 2020

87329 pictures, 1032 videos, iPhone 8, iOS 13.6. Loading time is 11s, please provide me with different test data to help me optimize this part of the function.

@gezihuzi gezihuzi changed the base branch from master to develop August 17, 2020 04:15
@DragonCherry DragonCherry merged commit b87d0e0 into DragonCherry:develop Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants