public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: W-Mark Kubacki <wmark@hurrikane.de>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] [PATCH] portage: HTTP if-modified-since and compression
Date: Fri, 3 Aug 2012 11:33:04 +0200	[thread overview]
Message-ID: <20120803093304.GA26033@3-0.hurrikane.de> (raw)
In-Reply-To: <1343957371.28838.64.camel@big_daddy.dol-sen.ca>

On Thu, Aug 02, 2012 at 06:29:31PM -0700, Brian Dolbec wrote:
> On Thu, 2012-08-02 at 21:57 +0200, Mark Kubacki wrote:
> > 
> > Regarding functionality – there is still some room for more
> > optimizations and more features. For example, if the local copy is no
> > older than x seconds then there's no need to contact any remote
> > server. Expect patches.
> > 
> 
> Mark, I did similar for the layman-2.0 code which has been running with
> the header info for quite a while now.  After it had been running for a
> good amount of time I put in a request to infra for some usage stats.
> 
> The If-Modified-Since header does make a big difference for layman.
> Now I just really need to make a good blog post with a few graphs of the
> data.
> You can view the results on this bug if your interested:
> https://bugs.gentoo.org/show_bug.cgi?id=398465
> 

Brian, thanks for the stats and the pointer to layman. I guess we both 
see the opportunity to share some experiences and code. Layman can 
benefit from adding compression and I need to integrate your notices 
about Py2/Py3 compatibility.

If it is okay with Zac I will refactor and improve the URL-fetching some 
more. Following redirects, a proper auth-handler and 'identificator' 
comes to mind. You could copy the final handlers, then.

Portage's 'emerge' currently contacts remote hosts whenever it is run 
and this adds a noticeable delay. In the best case even the 304 (not 
modified) responses are avoid wherever possible. So in the end success 
of Portage's caching will not be measurable by a 200-to-304 ratio.

-- 
Mark

[1] http://trac.nginx.org/nginx/ticket/93 – discussion about unintuitive 
but valid handling of the If-Modified-Since header


  reply	other threads:[~2012-08-03 12:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHw5crK-ek0EZashNgskiDPMM_bDycEX==KUXPmjWaTNyaOqCw@mail.gmail.com>
2012-08-01 23:32 ` [gentoo-portage-dev] [PATCH] portage: HTTP if-modified-since and compression Mark Kubacki
2012-08-02  1:02   ` Zac Medico
2012-08-02  2:31     ` Zac Medico
2012-08-02 19:57       ` Mark Kubacki
2012-08-02 21:13         ` Zac Medico
2012-08-03  1:29         ` Brian Dolbec
2012-08-03  9:33           ` W-Mark Kubacki [this message]
2012-08-03 14:33             ` Brian Dolbec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120803093304.GA26033@3-0.hurrikane.de \
    --to=wmark@hurrikane.de \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox