From dabbe3cfa344f3ad011f26d570ee82621e2d1b67 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 9 Apr 2024 20:07:00 -0400 Subject: Don't analyze namespaces we can't build Such a simple change but could potentially save seconds on every bild invocation because I have to go to disk and read the file and so on. I really should have caught this the first time I wrote it. --- Biz/Bild.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Biz/Bild.hs b/Biz/Bild.hs index 0ebcfcb..7bce4e9 100644 --- a/Biz/Bild.hs +++ b/Biz/Bild.hs @@ -205,8 +205,8 @@ move args = /> filter (\x -> isGitHook x |> don't) +> traverse Dir.makeAbsolute +> traverse (namespaceFromPathOrDie root) + /> filter isBuildableNs +> foldM analyze mempty - /> Map.filter (namespace .> isBuildableNs) +> printOrBuild +> exitSummary -- convert minutes to microseconds -- cgit v1.2.3