Skip to content

How to save memory #392

Discussion options

You must be logged in to vote

I don't have an iOS device and I was not able to reproduce the issue in the simulator bundled with Xcode.

I guess the Origin Private File System API could help, see https://webkit.org/blog/12257/the-file-system-access-api-with-origin-private-file-system/. However it's a bit tricky to use because FileSystemFileHandle#createSyncAccessHandle is only available in a Worker. The SplitDataReader would not be useful. However you could create a split zip with by using a generator ofWriter, it could help to save memory. There's a test showing how to use it here: https://github.com/gildas-lormeau/zip.js/blob/910cdf666382d5738a69c490b79483ce4b96df28/tests/all/test-split-zip.js and a similar demo here:

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by schlagmichdoch
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@gildas-lormeau
Comment options

@gildas-lormeau
Comment options

Comment options

You must be logged in to vote
2 replies
@gildas-lormeau
Comment options

@schlagmichdoch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #391 on January 27, 2023 08:41.