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

Allow media file uploads to be gzipped #91

Closed
andrewryno opened this issue Feb 12, 2014 · 2 comments
Closed

Allow media file uploads to be gzipped #91

andrewryno opened this issue Feb 12, 2014 · 2 comments
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@andrewryno
Copy link

Right now uploads are explicitly uncompressed which is currently costing us extra money in bandwidth uploading to Google as well as storage within Google Cloud Storage. Having the option to gzip uploads to Cloud Storage would be very useful and potentially save people some money.

Would this be as simple as removing the hardcoded $httpRequest->disableGzip() line and making it flagged? That should run it through the compress.zlib:// handler and just simply work.

@ianbarber
Copy link
Contributor

Uploads were playing very badly with compress.zlib - we were seeing poor batching on the upload (resulting in more network traffic in the end, and slower uploads). That could be isolated though - could you try removing the hardcoded disableGzip and see whether you get performance benefits?

@andrewryno
Copy link
Author

I removed it temporarily and saw marginal performance improvements (5 jobs per 10 seconds instead of 3-4 per 10 seconds, which could be coincidence). No concrete benchmarks though. I'll do some more testing tonight and see if I can get some actual numbers.

ianbarber pushed a commit to ianbarber/google-api-php-client that referenced this issue Mar 2, 2014
Make config GZIP possible to enable separately to the main gzip.
It still defaults to false, but at least in situations like googleapis#91 where
it is showing benefit it can be easily enabled.

In order to maintain the defaults though, the config names have become
slightly confusing (one disable, one enable). I've added some constants
to try and work around that, but I may be just setting us up for future
problems!
@silvolu silvolu closed this as completed Mar 5, 2014
@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

4 participants