-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Closed
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.
Description
Version
17.5
Platform
mac
Subsystem
No response
What steps will reproduce the bug?
const blob = new Blob(data)
// Sometime later
blob.stream()How often does it reproduce? Is there a required condition?
it reproduce every time, it's not clear to everyone that stream() will internally use blob.arrayBuffer()
What is the expected behavior?
to yield small chunks of data to not allocate as much memory as blob.size
What do you see instead?
I see memory spikes that when i create large blobs and then later tries to read them that memory goes way up.
this is one of the reason we are sticking to using fetch-blob instead of node's own built in blob implementation instead. I wish i did not have to use this package anymore and that i could also take adv of transfering blob's over workers with the built in transferable blob.
Additional information
No response
jcayzac
Metadata
Metadata
Assignees
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.