Follow-up Comment #8, bug #51309 (project make):
If, for example, you can show an example of notdir adding significantly to the
amount of time the make program takes.
To test this I created a makefile like this:
foo = ...
all: ; : $(words $(foo))
where the "..." represents 6000 paths hardcoded into the makefile. I then ran
"time make":
$ time make
: 6000
real 0m0.004s
user 0m0.000s
sys 0m0.000s
Then I modified the makefile to add a notdir like this:
foo = $(notdir ...)
all: ; : $(words $(foo))
where the "..." is the same as last time. I got this result:
$ time make
: 6000
real 0m0.004s
user 0m0.000s
sys 0m0.000s
Same time. This means that the amount of time needed to run notdir on 6000
paths is less than 1/1000th of a second. From this I conclude that the
performance impact of an additional notdir function is negligible and there's
no performance advantage to avoiding it.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51309>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make