-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize request.pipeline
writing
#208
Comments
Might also make use of |
go for it |
I ran the benchmarks on
Indeed it's still faster than the native Also I fixed the |
Let's stick to normal streams and not go to crazy here. pipeline has reasonable perf now. |
It should be possible to have the returned
Duplex
write directly to the socket. Instead of providing aReadable
as request body we can provide a function, i.e. the reverse of what we do on the response side inrequest.enqueue
.This would allow us to entirely bypass the intermediate
PassThrough
orReadable
between theDuplex
and the socket.The text was updated successfully, but these errors were encountered: