Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request : Request JSON body minify #6

Closed
vov4uk opened this issue Dec 18, 2017 · 2 comments
Closed

Feature request : Request JSON body minify #6

vov4uk opened this issue Dec 18, 2017 · 2 comments

Comments

@vov4uk
Copy link

vov4uk commented Dec 18, 2017

Average request length about ~600 bytes
But if use short names: for example current_status -> c_s
and round decimals to 2 digits "hashrate_highest":76.9971126082
It can save a lot of traffic.

Thank you,
Volodymyr.

@Bendr0id
Copy link
Owner

Sounds like a micro optimization.

if you reduce from 600bytes to 500bytes by removing the readability, it's worthless.

Better use gzip compression for request.

But 600byte every 10s is 200kb/hour. Is it really worth to spend effort into that?

@vov4uk
Copy link
Author

vov4uk commented Dec 18, 2017

Actually main purpose of this request was to make lower load to server. But I agree with you, readability more important than 100 bytes. I'll close task

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

No branches or pull requests

2 participants