Re: kbuild 2.5 is ready for inclusion in the 2.5 kernel

Paul Mackerras
2002-05-04T08:05:27Z

I wrote:

> I seriously doubt that last statement. Building the global makefile
> takes about 20 seconds on the box I compile on. On a kernel tree
> without object files I can read all the files in the kernel tree in
> about 0.8 seconds, and I can calculate an md5sum of every file in 3.2
> seconds. I can do an md5sum of all the Makefile.in's in 0.1 seconds.
> This is with pp_makefile* compiled with -O2 -DNDEBUG=1.

I made a mistake, the time to build the global makefile is in fact
around 12 seconds with -O2 -DNDEBUG=1. And I should point out that
this is a machine with enough RAM to keep the whole kernel tree in
memory (so disk bandwidth is not an issue).

I still think that the time to build the global makefile is big enough
and obvious enough that many people (including myself) will want to
see it optimized, either by making the process itself more efficient
or by caching the result and re-using it where possible.

Paul.