-
Notifications
You must be signed in to change notification settings - Fork 106
Closed
Description
I'm providing data directly to a socket. It looks like encode() writes to std::fmt::Write so it must be written to buffer then sent to the socket.
That's serviceable, but seems like a bit of a waste of memory and performance. So, two questions:
- Is there a way to write to std::io::Write that I haven't seen? Reviewing the text encoder, it seems like no
- Is there any interest in a pull request that would implement this? Maybe as
encode_stream()and hide that behind the existingencode()and friends?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels