| commit | 267c427b6d44563c7aa7c56e3f86f5f8fa66c074 | [log] [tgz] |
|---|---|---|
| author | Alon Zakai <azakai@google.com> | Tue Sep 06 17:35:35 2022 |
| committer | Alon Zakai <azakai@google.com> | Tue Sep 06 17:35:35 2022 |
| tree | 92605fba69288824d853f90f67e3ea3083333013 | |
| parent | 213aa8800188509775fbbecc57fa99a7be19c261 [diff] |
perf feedback
diff --git a/src/support/permutations.h b/src/support/permutations.h index 601057b..fb2647b 100644 --- a/src/support/permutations.h +++ b/src/support/permutations.h
@@ -60,9 +60,7 @@ } while (1) { std::set<Index> set; - for (auto x : curr) { - set.insert(x); - } + set.insert(curr.begin(), curr.end()); if (set.size() == size) { ret.push_back(curr); // this is indeed a permutation }