I am currently looking at the quic implementation code (in order to use it for webtransport).
I have seen that the quic implementation uses createBlobReaderStream
|
function createBlobReaderStream(reader) { |
for getting the readable.
I am wondering createBlobReaderStream recreates functions for every call to pull.
My experience with webstreams in the browser (also using V8) suggests that this potentially creates a large number of function objects on the stack.
So I wonder, if it is not better to move readNext up to the top closure of the function and pass the controller as an argument.
This may be important, if you run for example a video stream over a webtransport stream.
Or am I am missing something?
I am currently looking at the quic implementation code (in order to use it for webtransport).
I have seen that the quic implementation uses
createBlobReaderStreamnode/lib/internal/blob.js
Line 435 in 6f941fc
for getting the readable.
I am wondering
createBlobReaderStreamrecreates functions for every call to pull.My experience with webstreams in the browser (also using V8) suggests that this potentially creates a large number of function objects on the stack.
So I wonder, if it is not better to move
readNextup to the top closure of the function and pass the controller as an argument.This may be important, if you run for example a video stream over a webtransport stream.
Or am I am missing something?