Skip to content

Remove output pipe from sftp#60

Open
mkj wants to merge 5 commits into
mainfrom
pr/sftp-output
Open

Remove output pipe from sftp#60
mkj wants to merge 5 commits into
mainfrom
pr/sftp-output

Conversation

@mkj

@mkj mkj commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Instead of writing to a pipe, the Write reference can be written directly. This avoids memcpy to/from the pipe.
A couple of BUFFER_OUT_SIZE sized buffers are also removed, along with the Pipe instance.
(BUFFER_OUT_SIZE = 512 bytes for the demo server)

This runs slightly slower than before, but seems worthwhile given the removed code and runtime memory saving.
The performance could be investigated further.

mkj added 5 commits June 24, 2026 22:34
Instead of writing to a pipe, the Write reference can be written
directly. This avoids memcpy to/from the pipe.
A couple of BUFFER_OUT_SIZE sized buffers are also removed,
along with the Pipe instance.
(BUFFER_OUT_SIZE = 512 bytes for the demo server)

Mutable references are used for SftpOutputProducer now.

This runs slightly slower than before, but seems worthwhile given the
removed code and runtime memory saving. The performance could be
investigated further.
@mkj mkj force-pushed the pr/sftp-output branch from 003fe3e to 79dc670 Compare June 24, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant