Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Richard Freeman <rich0@g.o>
Subject: Re: Re: GLEP 55
Date: Tue, 10 Jun 2008 09:56:18 -0400
Joe Peterson wrote:
> 
> No, I have not profiled PMs to try this, but you are saying that reading
> the first few lines of a file is not faster than sourcing the whole
> thing with bash?  Remember that it could abort the minute it sees a non
> '#' or blank line, which would be after the first few.
> 

Actually, if you specified that the EAPI goes on the first line, then 
you'd only need to read the first line.

And to the extent that the rest got read into memory anyway by the 
kernel, well then it is already in the cache when whatever mechanism is 
invoked to parse the rest of the file.

I don't think that filename-vs-first-line is going to make a big 
difference in practical performance.  Any time lost in determining EAPI 
would be time saved in parsing the file.  And even though you could 
ignore unknown EAPIs, I think that in a typical case users would be 
using an up-to-date package manager that would just end up parsing 
everything all the time anyway.
-- 
gentoo-dev@g.o mailing list


Replies:
Re: Re: GLEP 55
-- Ciaran McCreesh
References:
A few questions to our nominees
-- Piotr Jaroszyński
Re: A few questions to our nominees
-- Donnie Berkholz
Re: A few questions to our nominees
-- Joe Peterson
Re: A few questions to our nominees
-- pioto
Re: GLEP 55 (was: A few questions to our nominees)
-- Joe Peterson
Re: GLEP 55 (was: A few questions to our nominees)
-- Ciaran McCreesh
Re: GLEP 55
-- Joe Peterson
Re: GLEP 55
-- Ciaran McCreesh
Re: GLEP 55
-- Joe Peterson
Re: GLEP 55
-- Ciaran McCreesh
Re: GLEP 55
-- Joe Peterson
Re: GLEP 55
-- Tiziano Müller
Re: Re: GLEP 55
-- Luca Barbato
Re: Re: GLEP 55
-- Joe Peterson
Re: Re: GLEP 55
-- Fernando J. Pereda
Re: Re: GLEP 55
-- Joe Peterson
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: GLEP 55
Next by thread:
Re: Re: GLEP 55
Previous by date:
Re: Re: GLEP 55
Next by date:
Re: Re: GLEP 55


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.