aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-04-18 13:49:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-04-19 04:12:34 +0200
commit77fc9816696ebed3cc8685a8fdee464799f2a157 (patch)
tree936a3379bcc91593f1a96ba5958ab64f841f43ec /libbuild2/algorithm.cxx
parent095583f1fbab20937720f9311ddb9945ff2b9224 (diff)
Skip find() inside target_set::insert*() if target is unlikely to be there
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r--libbuild2/algorithm.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx
index 287ab2e..7116b8b 100644
--- a/libbuild2/algorithm.cxx
+++ b/libbuild2/algorithm.cxx
@@ -341,7 +341,8 @@ namespace build2
move (n),
nullopt /* ext */,
target_decl::implied,
- trace));
+ trace,
+ true /* skip_find */));
if (r.second) // Inserted.
{