Skip to content

Conversation

jasnell
Copy link
Collaborator

@jasnell jasnell commented Oct 3, 2025

  • Eliminate duplicative null io stream... there's a kj::NullStream we can use.
  • Improve MemoryInputStream in preparation for using it to replace multiple duplicative stream impls (in blob, http, email, etc).
@jasnell jasnell requested review from a team as code owners October 3, 2025 21:36
@jasnell jasnell force-pushed the jasnell/eliminate-duplicated-nulliostream branch from 9a12566 to 90175a0 Compare October 3, 2025 21:56
Just use the `kj::NullStream` and avoid allocating new
instances on every use.
Improve and expand the implementation of MemoryInputStream.
This will soon be used to replace the duplicative stream
implementations in: BlobInputStream, EmailPartInputStream,
BodyBufferInputStream, and a couple of test stream impls.

The improvements here include better handling of pumpTo,
and teeing, as well as allowing the stream to hold onto
its underlying backing.
@jasnell jasnell force-pushed the jasnell/eliminate-duplicated-nulliostream branch from 90175a0 to 8f9c4a4 Compare October 6, 2025 14:11
@jasnell jasnell enabled auto-merge October 6, 2025 14:12
@jasnell jasnell merged commit 4955b75 into main Oct 6, 2025
21 checks passed
@jasnell jasnell deleted the jasnell/eliminate-duplicated-nulliostream branch October 6, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants