News Google releases Brotli compression code

Discussion in 'Article Discussion' started by Gareth Halfacree, 23 Sep 2015.

  1. Gareth Halfacree

    Gareth Halfacree WIIGII! Staff Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    9,326
    Likes Received:
    285
  2. Chicken76

    Chicken76 Member

    Joined:
    10 Nov 2009
    Posts:
    825
    Likes Received:
    19
    How whould it work even for static pages? You store and serve already compressed HTML files?
     
  3. Gareth Halfacree

    Gareth Halfacree WIIGII! Staff Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    9,326
    Likes Received:
    285
    Yup, and they're decompressed on-the-fly by the recipient browser. It's already possible to do this in Apache and other web servers - with Apache you'd use content negotiation and MultiViews to serve up the pre-compressed content. Basically, this wouldn't really need any changes server-side: you could just install a Brotli binary and compress your static content automagically. It just needs browsers to support decompression.
     
  4. Flibblebot

    Flibblebot Smile with me

    Joined:
    19 Apr 2005
    Posts:
    4,583
    Likes Received:
    129
    Two questions: does it use middle-out compression; and what is its Weissman score?

    :D
     
  5. Chicken76

    Chicken76 Member

    Joined:
    10 Nov 2009
    Posts:
    825
    Likes Received:
    19
    But you would still need to store the uncompressed files in case the client does not support Brotli, right?
     
  6. Gareth Halfacree

    Gareth Halfacree WIIGII! Staff Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    9,326
    Likes Received:
    285
    Yup - or you could decompress 'em on the fly, I guess. Storage, though, is way cheaper than bandwidth. Remember that Google is an advertising firm: it creates one advert then serves that advert to a billion eyeballs. Doubling up the storage used by a 50KB advert in exchange for shaving 26 per cent off the bandwidth required by those billion impressions is a no-brainer - and makes the end-user happier, too, as the page loaded faster and they've used less battery and data allowance (both of which mean said end-user is now more likely to stay online and view even more adverts.)
     
  7. IT Troll

    IT Troll New Member

    Joined:
    27 Aug 2009
    Posts:
    64
    Likes Received:
    0
    No way it beats http://www.piedpiper.com/
     
  8. Flibblebot

    Flibblebot Smile with me

    Joined:
    19 Apr 2005
    Posts:
    4,583
    Likes Received:
    129
  9. Corky42

    Corky42 What did walle eat for breakfast?

    Joined:
    30 Oct 2012
    Posts:
    7,546
    Likes Received:
    88
    It's never going to catch on, no one likes broccoli. :D
     
  10. SchizoFrog

    SchizoFrog New Member

    Joined:
    5 May 2009
    Posts:
    1,574
    Likes Received:
    8
    I just love Gareth's use of 'automagically'... :D
     

Share This Page