clusterlin: replace benchmarks with SFL-hard ones (bench)

This also adds a per-cost variant of each.
This commit is contained in:
Pieter Wuille
2025-05-17 19:08:25 -04:00
parent 86dd550a9b
commit 95bfe7d574
2 changed files with 93 additions and 108 deletions

View File

@@ -334,6 +334,15 @@ public:
return true;
}
unsigned CountDependencies() const noexcept
{
unsigned ret = 0;
for (auto i : Positions()) {
ret += GetReducedParents(i).Count();
}
return ret;
}
/** Reduce memory usage if possible. No observable effect. */
void Compact() noexcept
{