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

Speed up access to shared storage #581

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Conversation

qnga
Copy link
Contributor

@qnga qnga commented Oct 25, 2024

WewViews attempt to read all resources at once and by ranges, so range requests reaching a ZIP file are entirely random (for instance range 1 from resource 1, then range 1 from resource 2, then range 2 from resource1, etc.). This PR significantly improves speed (though unfortunately, we still can't reach direct access speed) by

  • Reusing the InputStream when reading a range located after the previous read one.
  • Reading full ZIP entries in one go and caching them when they are small enough.

In addition, fixes the path that imports from intents go through in the testapp.

@qnga qnga marked this pull request as ready for review October 25, 2024 12:36
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.

1 participant