Update the best proto-pal relative size when a new best is found

*facepalm*
This commit is contained in:
ISSOtm
2024-08-23 13:35:48 +02:00
parent 77129b9e80
commit 23272f028f

View File

@@ -393,16 +393,18 @@ std::tuple<DefaultInitVec<size_t>, size_t>
continue; continue;
} }
double relSize = assignments[i].relSizeOf(protoPal);
options.verbosePrint( options.verbosePrint(
Options::VERB_DEBUG, Options::VERB_DEBUG,
"%zu/%zu: Rel size: %f (size = %zu)\n", "%zu/%zu: Rel size: %f (size = %zu)\n",
i + 1, i + 1,
assignments.size(), assignments.size(),
assignments[i].relSizeOf(protoPal), relSize,
protoPal.size() protoPal.size()
); );
if (assignments[i].relSizeOf(protoPal) < bestRelSize) { if (relSize < bestRelSize) {
bestPalIndex = i; bestPalIndex = i;
bestRelSize = relSize;
} }
} }