Skip to content

Conversation

davidBar-On
Copy link
Contributor

Add a second option to -l to specify number of different (randomized) blocks to send. The purpose is that not all sent blocks will be the same, and as the blocks contents is randomized by default, network compression will not have an effect.

Test, that stored the received data for 1KB blocks into a file, shows that when sending the same block contents, zip of the file achieves more than 99% compression. On the other hand, when the block contents repeats only every 100 blocks, zip achieves almost no compression.

The change includes also initializing a stream buffer only when it is a sending stream.

@bmah888
Copy link
Contributor

bmah888 commented Jul 14, 2025

Thanks for the PR, we'll take a look!

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