You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previous implementation of Blob was naive, because it sliced everything in memory, assuming contents were already loaded. In reality, Blob arrayBuffer() or bytes() are async and lazy. However, slice is synchronous.
We should implement something similar to a BlobView that gets created as a subclass of a Blob, holds information about offset/length of a slice and will still ready full underlying stream(), but return its slice.
Here, it might be relevant to implement seeking a stream (as discussed with @mani3xis)
The text was updated successfully, but these errors were encountered:
Previous implementation of Blob was naive, because it sliced everything in memory, assuming contents were already loaded. In reality, Blob
arrayBuffer()
orbytes()
are async and lazy. However,slice
is synchronous.We should implement something similar to a
BlobView
that gets created as a subclass of a Blob, holds information about offset/length of a slice and will still ready full underlying stream(), but return its slice.Here, it might be relevant to implement seeking a stream (as discussed with @mani3xis)
The text was updated successfully, but these errors were encountered: