Skip to content

Conversation

@Rob-Hague
Copy link
Collaborator

@Rob-Hague Rob-Hague commented Jun 1, 2025

currently based on #1649. this change is the second commit

The library currently allocates 4 bytes (and some) for every 1 byte of file downloaded(*). It could be 0. This takes it to 3.

(*)

  1. Array allocated for read of encrypted packet from socket
  2. Array for decrypted packet
  3. Array for channel data (removed in this change)
  4. Array for sftp data packet

@Rob-Hague Rob-Hague marked this pull request as draft June 1, 2025 09:26
The library currently allocates 4 bytes (and some) for every 1 byte of file
downloaded(*). It could be 0. This takes it to 3.

(*)
1. Array allocated for read of encrypted packet from socket
2. Array for decrypted packet
3. Array for channel data (removed in this change)
4. Array for sftp data packet
@Rob-Hague Rob-Hague marked this pull request as ready for review June 6, 2025 06:51
@Rob-Hague Rob-Hague merged commit fd05d76 into sshnet:develop Jun 6, 2025
4 checks passed
@Rob-Hague Rob-Hague deleted the arraysegment1 branch June 6, 2025 06:52
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.

2 participants