Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Doris-Extras committed Sep 21, 2024
1 parent b202ee4 commit 7d42891
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions be/src/util/algorithm_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ class AlgoUtil {
// Use floor value, so that the step size is a little smaller than the actual value.
// And then the used step will be a little larger than the actual value.
int64_t step_size = (int64_t)std::floor((high_bound - low_bound) / (step_num * 1.0));
std::cout << "step_size " << step_size << std::endl;
int64_t used_step = (int64_t)std::ceil((current - low_bound) / (step_size * 1.0));
std::cout << "used_step " << used_step << std::endl;
// Then the left step is smaller than actual value.
// This elimation algo will elimate more cache than actual.
int64_t left_step = step_num - used_step;
Expand Down

0 comments on commit 7d42891

Please sign in to comment.