Gentoo Archives: gentoo-portage-dev

From: Fabian Groffen <grobian@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Nirbheek Chauhan <nirbheek@g.o>
Subject: [gentoo-portage-dev] Re: proj/portage:master commit in: pym/portage/dbapi/
Date: Sat, 26 Nov 2011 11:39:08
Message-Id: 20111126113830.GC37825@gentoo.org
1 On 26-11-2011 16:56:41 +0530, Nirbheek Chauhan wrote:
2 > On Sat, Nov 26, 2011 at 4:28 PM, Fabian Groffen <grobian@g.o> wrote:
3 > > On 26-11-2011 01:54:35 +0000, Arfrever Frehtes Taifersar Arahesis wrote:
4 > >> commit:     1d4ac47c28706094230cb2c4e6ee1c1c71629aa0
5 > >> T> Org>
6 > >> AuthorDate: Sat Nov 26 01:52:49 2011 +0000
7 > >> Commit:     Arfrever Frehtes Taifersar Arahesis <arfrever <AT> gentoo <DOT> org>
8 > >> CommitDate: Sat Nov 26 01:52:49 2011 +0000
9 > >> URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=1d4ac47c
10 > >>
11 > >> dblink.mergeme(): Merge files in alphabetic order.
12 > >
13 > > What's the advantage of this?  I don't really like to pay for sorting a
14 > > potentially huge list just for some eye-candy.  (That's omitted by
15 > > default these days anyway...)
16 > > Any other opinions on this one?
17 > >
18 >
19 > If it should be sorted[1], it should really be sorted in the reverse
20 > order of distfile-download size. That would be extremely useful on
21 > systems with slow internet connections. Too many times have I sat
22 > waiting for libreoffice-bin to download while a webkit-gtk recompile
23 > waits in the queue.
24 >
25 > We already have the information during dependency resolution with
26 > --verbose, and it costs very little. Besides, sorting even 30,000
27 > entries (if you're merging every ebuild in portage) should not take
28 > more than a few secs.
29
30 A linux kernel has around that much of files, and I really wonder if
31 it's worth waiting a couple of seconds (probably more on sparc and arm
32 systems) just because then the files are in sorted order.
33
34 > 1. I'm obviously assuming that dep nodes that do not depend on each
35 > other would be sorted
36
37 I think this is per package.
38
39 I didn't watch closely enough the reply-to headers, the
40 gentoo-portage-dev list was my original target, which obviously makes
41 more sense for this context.
42
43
44 --
45 Fabian Groffen
46 Gentoo on a different level

Attachments

File name MIME type
signature.asc application/pgp-signature