Skip to content

Conversation

zuisong
Copy link
Contributor

@zuisong zuisong commented Jan 14, 2024

#523
#497

This PR adds an optional section to turn on compress response, turned off by default, and a note in the help docs about the impact of turning this on.

/// Enable compress response
///
/// WARNING: Enabling this option may slow down transfers due to CPU overhead, so it is disabled by default.
/// 
/// Only enable this option if you know that your users have slow connections or if you want to minimize your server's bandwidth usage.

Copy link
Owner

@svenstaro svenstaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just a tiny code change.

Did you perform some benchmarks by any chance?

@zuisong
Copy link
Contributor Author

zuisong commented Jan 15, 2024

I didn't do benchmark, but my server egress bandwidth is very low, and I'm transmitting plain text files, which really need compression.

@zuisong zuisong requested a review from svenstaro January 15, 2024 08:13
@svenstaro svenstaro merged commit 30addbf into svenstaro:master Jan 16, 2024
@svenstaro
Copy link
Owner

Super nice, thanks!

svenstaro added a commit that referenced this pull request Jan 16, 2024
@zuisong zuisong deleted the opt_compress_response branch January 16, 2024 15:56
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.

3 participants