News Google releases Brotli compression code

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

  1. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    14,900
    Likes Received:
    3,673
  2. Chicken76

    Chicken76 Minimodder

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

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    14,900
    Likes Received:
    3,673
    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,734
    Likes Received:
    207
    Two questions: does it use middle-out compression; and what is its Weissman score?

    :D
     
  5. Chicken76

    Chicken76 Minimodder

    Joined:
    10 Nov 2009
    Posts:
    952
    Likes Received:
    32
    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! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    14,900
    Likes Received:
    3,673
    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 What's a Dremel?

    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,734
    Likes Received:
    207
  9. Corky42

    Corky42 Where's walle?

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

    SchizoFrog What's a Dremel?

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

Share This Page