From: Brian Harring <ferringb@gmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Re: Re: RFC: New build types
Date: Thu, 20 Mar 2008 00:15:10 -0700 [thread overview]
Message-ID: <20080320071510.GA4539@seldon.hsd1.ca.comcast.net> (raw)
In-Reply-To: <frt12t$hhi$1@ger.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 2809 bytes --]
On Thu, Mar 20, 2008 at 06:51:13AM +0000, Steve Long wrote:
> Rémi Cardona wrote:
>
> > Steve Long a écrit :
> >> First and foremost to give an environment wherein people can write their
> >> installation scripts using the language they are most comfortable with.
> >
> > If bash is not "easy" or straightforward enough for what you are trying
> > to achieve, then I'd say the package is broken (ie, hand-made configure
> > script, odd makefiles and whatnot). Better fix the package rather than
> > rewriting ebuilds, make the world a better place.
> >
> Heh, I'm fine with BASH believe it or not ;p nor do I have that much
> interest in the other scripting languages. I really just think it would
> make porting stuff to Gentoo a lot simpler for people who don't know Cbut
> do know their language of choice.
>
> >> Secondly efficiency; in the case of a pbuild it could be run from within
> >> the PM; for something like a jbuild it would use the native tools and
> >> existing libraries like ANT. For hbuild it would tie into Cabal. While
> >> these may be used already, we go from PM -> BASH -> LangX. I'm just
> >> saying give the _option_ to leave out the BASH bit when you have mature
> >> tools in langX.
> >
> > Care to back that up with any sort of figure or number? Is bash really
> > the bottleneck? For 90% of the tree's ebuilds, I would _gcc_ is the
> > bottleneck. Then I'd bet a big lump on libtool. Not portage, not bash.
> >
> > But then again, I don't have any numbers to back that up either...
> >
> I don't have figures, but my understanding is that one of the major factors
> in pkgcore's speed (which *is* impressive, even if the UI isn't quite there
> yet) is that it doesn't reload bash for every phase. (The whole
> ebuild "daemon" or ebd thing.)
From a speed standpoint, EBD is only relevant if we're talking about
metadata regeneration-
http://gentooexperimental.org/~ferringb/blog/archives/2005-03.html#e2005-03-05T16_59_39.txt
Generally speaking, if you're sourcing to get metadata (regardless of
the underlying format), you're already screwed- cache exists for a
reason and is massively faster to rely on. Pkgcore's speed comes
about from careful design + a massive amount of JIT, EBD is faster
then the alternatives but that's *only* relevant for metadata
regeneration.
Finally, bear in mind we're talking about build phase here- even if
the pkg is just a straight unpack/copy, the bottleneck there isn't
going to be the bash bits for setting up the env, it's going to be the
unpack, copy, multiple QA checks that do repeated find's across ${D},
multiple file invocations for same file, etc. Seriously- profile a
merge sometime, even on non-compilations the large time slices are
never bash.
~brian
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-03-20 7:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-18 10:18 [gentoo-dev] RFC: New build types Steve Long
2008-03-18 10:11 ` Rémi Cardona
2008-03-20 3:59 ` [gentoo-dev] " Steve Long
2008-03-20 5:13 ` Rémi Cardona
2008-03-20 6:51 ` [gentoo-dev] " Steve Long
2008-03-20 7:15 ` Brian Harring [this message]
2008-03-21 12:52 ` [gentoo-dev] " Steve Long
2008-03-20 10:44 ` [gentoo-dev] " Petteri Räty
2008-03-21 12:01 ` [gentoo-dev] " Steve Long
2008-03-20 5:31 ` [gentoo-dev] " Marius Mauch
2008-03-18 10:32 ` [gentoo-dev] " Jakub Moc
2008-03-18 21:23 ` Luca Barbato
2008-03-20 4:02 ` [gentoo-dev] " Steve Long
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080320071510.GA4539@seldon.hsd1.ca.comcast.net \
--to=ferringb@gmail.com \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox