Browser: Revert to MEMFS and transfer ownership of Transferable objects
See original GitHub issueIs your feature request related to a problem? Please describe. As mentioned by me in #8, IndexedDB has some strong limitations with regard to the size of individual items. This makes it impossible to work with files larger than 133 MB (Chrome) or 267 MB (Firefox).
Describe the solution you’d like
As hinted by @LucCADORET in the same issue, reverting to MEMFS and transferring the ownership of the Transferable objects (ArrayBuffer
) by additionally passing them as the second parameter (transfer
) of Worker.postMessage() should solve this problem:
worker.postMessage(message, arrayBuffersContainedInMessage);
Describe alternatives you’ve considered I don’t know of any alternative solution.
Additional context (None for now.)
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Transferable objects - MDN Web Docs Glossary: Definitions of ...
Transferable objects are objects that own resources that can be transferred from one context to another, ensuring that the resources are ...
Read more >Userland transferable/cloneable objects · Issue #37080 - GitHub
We use this, for instance, to transfer KeyObject , X509Certificate , and FileHandle objects in a way that just works. The node::BaseObject base ......
Read more >Using transferable objects from a Web Worker - Stack Overflow
To use "transferable objects" you actually transfer the ownership of the object to or from the web worker. It's like passing by reference ......
Read more >Transferable objects - Lightning fast - Chrome Developers
With transferable objects, data is transferred from one context to another. It is zero-copy, which vastly improves the performance of ...
Read more >Manage content—Portal for ArcGIS
Manage content · Categorize content · Change owner · Delete items · Manage items for a specific member · Change item ownership in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@IliasHad Maybe you could also read the large file in chunks, similar to how Jerome implemented transcoding of a live stream here.
@caugner Great, Thank you