|
From: | Paul D. Smith |
Subject: | [bug #51309] Determination of a file list from a single folder without changing the working directory |
Date: | Sun, 2 Jul 2017 15:45:35 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0 |
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/
[Prev in Thread] | Current Thread | [Next in Thread] |