Skip to content

Conversation

@Rob-Hague
Copy link
Collaborator

Continuing from previous changes, add a persistent buffer into which the message payload is decrypted, rather than allocating a new array each time.

With this change and #1733, #1738 (plus #1650 in 2025.1.0), allocations for the server-to-client (e.g. download) direction are significantly reduced compared to previous versions.

Download
(SFTP)
Version Allocated
1MB 2025.0.0 4.92MB
1MB 2025.1.0 3.16MB
1MB PR 0.16MB
8MB 2025.0.0 140.4MB
8MB 2025.1.0 24.8MB
8MB PR 0.8MB

Footnotes

  1. Bi-modal between 4x and 5x of file size before Use an array buffer for the sftp packet stream #1649 in 2025.1.0

Continuing from previous changes, add a persistent buffer into which the message
payload is decrypted, rather than allocating a new array each time.
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