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 }