bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #63650] Performance regression with EXPORT_ALL_VARIABLES enabled


From: Raul E Rangel
Subject: [bug #63650] Performance regression with EXPORT_ALL_VARIABLES enabled
Date: Thu, 14 Dec 2023 10:50:50 -0500 (EST)

Follow-up Comment #8, bug#63650 (group make):

I just ran into this bug while trying to upgrade from 4.2 to 4.4. We had a lot
of builds get slower. Specifically
[trace-cmd](https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/tag/?h=trace-cmd-v3.1.5)
now takes minutes to run the Makefile where before the make time was
negligible. One of our other builds went from ~1hr total to ~2.5hrs.

Maybe instead of exporting all the variables to `$(shell)` by default, we
could make it an opt-in feature? e.g., if `.SHELL_EXPORT := 1` is defined,
then the variables are all exported to the $(shell) invocation. This way
Makefiles that want to use this feature can declare that they need it in their
own Makefiles, while not impacting the performance of any older Makefiles.

Thanks,
Raul


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63650>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]