Re: [PATCH 2/2] kbuild: add shell cache

2016-07-22 Thread Michal Marek
On 2016-06-27 20:28, Rabin Vincent wrote: > Running make results in over 40 invocations of the compiler just during > processing of the Makefile, before any actual rules are run. > > To reduce this overhead, cache the results of $(shell) calls to the > compiler. How do you detect when the compile

Re: [PATCH 2/2] kbuild: add shell cache

2016-06-29 Thread Jim Davis
On Mon, Jun 27, 2016 at 11:28 AM, Rabin Vincent wrote: > Running make results in over 40 invocations of the compiler just during > processing of the Makefile, before any actual rules are run. > > To reduce this overhead, cache the results of $(shell) calls to the > compiler. Clever. Looks like

[PATCH 2/2] kbuild: add shell cache

2016-06-27 Thread Rabin Vincent
Running make results in over 40 invocations of the compiler just during processing of the Makefile, before any actual rules are run. To reduce this overhead, cache the results of $(shell) calls to the compiler. On my machine, this reduces make's processing time by over 96%: $ make kernelversion