question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Browser: Revert to MEMFS and transfer ownership of Transferable objects

See original GitHub issue

Is 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:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
caugnercommented, Feb 10, 2020

@IliasHad Maybe you could also read the large file in chunks, similar to how Jerome implemented transcoding of a live stream here.

0reactions
IliasHadcommented, Feb 10, 2020

@caugner Great, Thank you

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found