Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6569427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:37:31+00:00 2026-05-25T14:37:31+00:00

I know that gzipping files before sending them across the network saves bandwidth, and

  • 0

I know that gzipping files before sending them across the network saves bandwidth, and for static files that can be cached, it is not a significant impact on server-side CPU usage.

But what about the client? They have to gunzip whatever files are sent, which will take CPU time. Additionally, I’m worried that the entire file must be received and gunzipped before any parsing can take place.

This strikes me as odd because I see two scenarios:

1) client has fast internet   -->   gzip is relevant
2) client has slow internet   -->   gzip prevents partial parsing

Clearly the exact speed-up (or slow-down?) will depend on exact circumstances of the files being transferred and the client. However, I’m curious what the time cost (or how can I measure the cost) on the client-side?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:37:32+00:00Added an answer on May 25, 2026 at 2:37 pm

    They have to gunzip whatever files are sent, which will take CPU time.

    Perhaps, but the CPU time spent on decompression is extremely small compared to all the other things going on when loading a page (parsing, styling, rendering, scripting).

    I’m worried that the entire file must be received and gunzipped before any parsing can take place.

    Don’t worry, gzip is a “stream” of data and the complete file is not required to begin decompression/parsing.

    Specifically I want to know how I can gauge how much time is lost because of gzipping.

    Here is an interesting article where the author performs the type of test you’re describing. The tools are available for download so that you can perform the same tests in your own environment.

    The author concludes:

    I guess there are very few cases where you shouldn’t use gzip your content. If your typical page is less than 100 bytes then gzipping it could hurt the client’s and the server’s performance. But no website —except maybe a few web-services— serves pages with a typical size of 100 bytes or less. So there’s no excuse for serving uncompressed HTML.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that I can use System.getProperty(user.home) gets the default home for files and
I know that we can stop inheritance of the web.config files from the root
I know that when linking to multiple static libraries or object files, the order
I know that this sort of question has been asked here before, but still
I know that I can hijack a form by showing a login form in
I know that ads colors can be set up in account settings, but I
I know that, as of Java 1.5 , one can add a component to
I know that Lines of Code (LoC) is a dubious if not false code
I know that Chrome has a known bug not preserving the stacktrace when rethrowing
I know that I can use the following to have thread B waiting for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.