On Fri, Dec 17 2021, Eric Sunshine wrote: > On Thu, Dec 16, 2021 at 11:40 PM Ævar Arnfjörð Bjarmason > <avarab@xxxxxxxxx> wrote: >> [...] >> But as it turns out we can use this neat trick of only doing a "mkdir >> -p" if the $(wildcard) macro tells us the path doesn't exist. A re-run >> of a performance test similar to thatnoted downthread of [1] in [2] >> shows that this is faster, in addition to being less verbose and more >> reliable (this uses my "git-hyperfine" thin wrapper for "hyperfine"[3]): > > s/thatnoted/that noted/ > >> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> >> --- >> diff --git a/shared.mak b/shared.mak >> @@ -90,3 +92,18 @@ ifndef V >> +## Is racy, but in a good way; we might redundantly (and safely) >> +## "mkdir -p" when running in parallel, but won't need to exhaustively >> +## individual rules for "a" -> "prefix" -> "dir" -> "file" if given a >> +## "a/prefix/dir/file". This can instead be inserted at the start of >> +## the "a/prefix/dir/file" rule. > > Is there a word missing between "exhaustively" and "individual"? Thanks. I addressed both of these in the v2, for which I accidentally broke the threading by omitting In-Reply-To (sorry!): https://lore.kernel.org/git/cover-v2-0.8-00000000000-20211224T173558Z-avarab@xxxxxxxxx/