Skip to content

Commit 047b89f

Browse files
committed
got rid of a silly space microoptimization
1 parent c31add7 commit 047b89f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/recovery.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ class SparseRecovery {
5151
size_t current_cfr_size = max_recovery_size;
5252
size_t current_cfr_idx = 0;
5353
while (current_cfr_size > cleanup_sketch_support) {
54-
size_t power_of_two_rounded_size = 1 << (size_t) ceil(log2(current_cfr_size));
54+
// size_t power_of_two_rounded_size = 1 << (size_t) ceil(log2(current_cfr_size));
5555
// TODO - examine whether it's better to do something else.
5656
// ROUND THE SIZE TO A POWER OF TWO -- important for maintaining uniformity.
57-
auto current_start_idx = starter_indices[current_cfr_idx++] + power_of_two_rounded_size;
57+
// auto current_start_idx = starter_indices[current_cfr_idx++] + power_of_two_rounded_size;
58+
auto current_start_idx = starter_indices.back() + current_cfr_size;
5859
starter_indices.push_back(current_start_idx);
5960
current_cfr_size = ceil(current_cfr_size * reduction_factor);
6061
}

0 commit comments

Comments
 (0)