diff options
author | Ben Sima <ben@bsima.me> | 2024-04-09 20:07:00 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2024-04-10 19:56:46 -0400 |
commit | dabbe3cfa344f3ad011f26d570ee82621e2d1b67 (patch) | |
tree | 6d2275fb1abe2304f89f62ed9cb89b93697a0d58 /Biz/Bild.hs | |
parent | db6dd08ea43290208d3f574ccba3506b0f76d1ce (diff) |
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.
Diffstat (limited to 'Biz/Bild.hs')
-rw-r--r-- | Biz/Bild.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |