On Thu, May 1, 2008 at 3:11 PM,  <[EMAIL PROTECTED]> wrote:
> In the middle of doing a major upgrade from very old pkgs to current
>  2008 and compiling lots and lots of stuff.
>
>  Seeing that line `checking for WHATEVER' go by 486,211 times so far
>  makes me wonder if there wouldn't be someway to cache all those
>  answers somewhere so whatever test is done for each line could be
>  dispensed with for most of them.  Probably would need more than 2-3
>  compiles to have all but rare ones answered.
>
>  Some items really check a lot of things.
>
>  I think it would be a major time saver when discussing huge numbers
>  of compiles.
>
>
>  --
>  gentoo-user@lists.gentoo.org mailing list

I had thought the same thing myself some time ago, and I discovered
that there had been work on a FEATURE called confcache. I believe it
was abandoned, though, due to major difficulties. This is merely a
guess, but I think some of the problems arise in that some of the
things that are checked for actually change as a package is installed
or updated (e.g. checking gcc version). This means that each package
being installed would have to somehow flag confcache and indicate that
it has changed, and confcache would have to keep a list of all these
cached values and their dependencies.

I think there might be potential, however, for something that cached
some of the more common system checks such as number of command line
arguments. Then again, if many of these configuration items are
discovered through a simple system call or by running a quick command,
I'm not sure how much faster something like confcache would actually
be.
-- 
gentoo-user@lists.gentoo.org mailing list

Reply via email to