From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-dev+bounces-48748-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1RUGQ3-0000Cj-5K
	for garchives@archives.gentoo.org; Sat, 26 Nov 2011 11:27:43 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 830FF21C120;
	Sat, 26 Nov 2011 11:27:32 +0000 (UTC)
Received: from mail-yw0-f53.google.com (mail-yw0-f53.google.com [209.85.213.53])
	by pigeon.gentoo.org (Postfix) with ESMTP id 9525021C11C
	for <gentoo-dev@lists.gentoo.org>; Sat, 26 Nov 2011 11:27:02 +0000 (UTC)
Received: by ywm19 with SMTP id 19so3793956ywm.40
        for <gentoo-dev@lists.gentoo.org>; Sat, 26 Nov 2011 03:27:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=mime-version:sender:in-reply-to:references:from:date
         :x-google-sender-auth:message-id:subject:to:content-type
         :content-transfer-encoding;
        bh=lEoGaGb4v4yTHZxybasMqmGuiUDrTII4hI1OBCcjnb8=;
        b=czwYvM7mZ5Dds00dwieJL4KLuZy3zt/j0CdAV1QWXAeOWlPG2GqRUhVBLCpeQpmBWl
         R53xEugJsggRhZV0plDq4UlhrH1yd8jQjbQ8uOBbuoG/Wz4YRAxsK2HWBK1naux6gEiL
         KK7rSDndzbLx9T6qCQroDt9NRRd/z2zqkwtJU=
Received: by 10.101.87.16 with SMTP id p16mr8172526anl.169.1322306822083; Sat,
 26 Nov 2011 03:27:02 -0800 (PST)
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
MIME-Version: 1.0
Sender: nirbheek.chauhan@gmail.com
Received: by 10.146.174.9 with HTTP; Sat, 26 Nov 2011 03:26:41 -0800 (PST)
In-Reply-To: <20111126105822.GA37825@gentoo.org>
References: <1d4ac47c28706094230cb2c4e6ee1c1c71629aa0.arfrever@gentoo> <20111126105822.GA37825@gentoo.org>
From: Nirbheek Chauhan <nirbheek@gentoo.org>
Date: Sat, 26 Nov 2011 16:56:41 +0530
X-Google-Sender-Auth: 7h72hXyITPqnLH5zKDj3UgXrs20
Message-ID: <CADqQcK6XB489Lyrf+=01k_8HQD98Pk8Hp+gVBOKz+UfH83hzFQ@mail.gmail.com>
Subject: Re: [gentoo-dev] Re: proj/portage:master commit in: pym/portage/dbapi/
To: gentoo-dev@lists.gentoo.org, 
	Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: a7847092-a137-49a6-b08c-214002bb9cc1
X-Archives-Hash: ff3c69dd0c3c5a5f6e8ce3ebf2e550bf

On Sat, Nov 26, 2011 at 4:28 PM, Fabian Groffen <grobian@gentoo.org> wrote:
> On 26-11-2011 01:54:35 +0000, Arfrever Frehtes Taifersar Arahesis wrote:
>> commit: =C2=A0 =C2=A0 1d4ac47c28706094230cb2c4e6ee1c1c71629aa0
>> T> Org>
>> AuthorDate: Sat Nov 26 01:52:49 2011 +0000
>> Commit: =C2=A0 =C2=A0 Arfrever Frehtes Taifersar Arahesis <arfrever <AT>=
 gentoo <DOT> org>
>> CommitDate: Sat Nov 26 01:52:49 2011 +0000
>> URL: =C2=A0 =C2=A0 =C2=A0 =C2=A0http://git.overlays.gentoo.org/gitweb/?p=
=3Dproj/portage.git;a=3Dcommit;h=3D1d4ac47c
>>
>> dblink.mergeme(): Merge files in alphabetic order.
>
> What's the advantage of this? =C2=A0I don't really like to pay for sortin=
g a
> potentially huge list just for some eye-candy. =C2=A0(That's omitted by
> default these days anyway...)
> Any other opinions on this one?
>

If it should be sorted[1], it should really be sorted in the reverse
order of distfile-download size. That would be extremely useful on
systems with slow internet connections. Too many times have I sat
waiting for libreoffice-bin to download while a webkit-gtk recompile
waits in the queue.

We already have the information during dependency resolution with
--verbose, and it costs very little. Besides, sorting even 30,000
entries (if you're merging every ebuild in portage) should not take
more than a few secs.

1. I'm obviously assuming that dep nodes that do not depend on each
other would be sorted

--=20
~Nirbheek Chauhan

Gentoo GNOME+Mozilla Team