1 |
On Tue, 10 Jun 2008 07:49:31 -0600 |
2 |
Joe Peterson <lavajoe@g.o> wrote: |
3 |
> > No, it doesn't make parsing faster. Had you bothered to profile |
4 |
> > any package manager you'd know that. |
5 |
> |
6 |
> No, I have not profiled PMs to try this, but you are saying that |
7 |
> reading the first few lines of a file is not faster than sourcing the |
8 |
> whole thing with bash? Remember that it could abort the minute it |
9 |
> sees a non '#' or blank line, which would be after the first few. |
10 |
|
11 |
The package manager does not currently source the whole thing with |
12 |
bash to get the EAPI, nor does it open the ebuild file at all for |
13 |
metadata. You're talking doubling the number of file operations here, |
14 |
and going from extremely good filesystem locality (which means very few |
15 |
seeks) to jumping backwards and forwards all over the place. |
16 |
|
17 |
This is basic stuff you really need to know before you can comment |
18 |
sensibly on a discussion about package metadata. |
19 |
|
20 |
-- |
21 |
Ciaran McCreesh |