public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Brian Dolbec <dolsen@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] [PATCH] portage: HTTP if-modified-since and compression
Date: Fri, 03 Aug 2012 07:33:21 -0700	[thread overview]
Message-ID: <1344004401.28838.97.camel@big_daddy.dol-sen.ca> (raw)
In-Reply-To: <20120803093304.GA26033@3-0.hurrikane.de>

[-- Attachment #1: Type: text/plain, Size: 1333 bytes --]

On Fri, 2012-08-03 at 11:33 +0200, W-Mark Kubacki wrote:
> 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.
> 

I haven't quite gotten all that is needed for py2/py3 compatibility
done.  Also I could not get it to work with both py2 and py3 with the
same code.  I have a little more to modify for a clean 2to3 run on the
code to work without additional patching.

> 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.
> 

:)  my laziness thanks you in advance 

> 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.
> 

Layman does similar, but not every run, just -L, -f, -S, -s options,
which is why I added the headers...

hmm, adding the if >=x time fetch skip is a good idea.

-- 
Brian Dolbec <dolsen@gentoo.org>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

      reply	other threads:[~2012-08-03 15:06 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
2012-08-03 14:33             ` Brian Dolbec [this message]

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=1344004401.28838.97.camel@big_daddy.dol-sen.ca \
    --to=dolsen@gentoo.org \
    --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