Gentoo Archives: gentoo-dev

From: Joe Peterson <lavajoe@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: GLEP 55
Date: Tue, 10 Jun 2008 16:36:44
Message-Id: 484E866B.6000307@gentoo.org
In Reply to: Re: [gentoo-dev] Re: GLEP 55 by "Fernando J. Pereda"
1 Fernando J. Pereda wrote:
2 > On 10 Jun 2008, at 15:33, Joe Peterson wrote:
3 >
4 >> Luca Barbato wrote:
5 >>> Check if exists a line EAPI=*$, if does and the rest of the string
6 >>> matches an understood eapi, go on sourcing, otherwise ignore/mask
7 >>> it...
8 >> And placing it out-of-band (like "# EAPI=...") avoids any sourcing
9 >> errors, makes parsing faster, etc.
10 >
11 > No, it doesn't make parsing faster. Had you bothered to profile any
12 > package manager you'd know that.
13
14 No, I have not profiled PMs to try this, but you are saying that reading
15 the first few lines of a file is not faster than sourcing the whole
16 thing with bash? Remember that it could abort the minute it sees a non
17 '#' or blank line, which would be after the first few.
18
19 -Joe
20 --
21 gentoo-dev@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: GLEP 55 Richard Freeman <rich0@g.o>
Re: [gentoo-dev] Re: GLEP 55 Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>