Skip to content

Commit 6911627

Browse files
committed
improve get_recommended_stripe_heights()
1 parent 621651e commit 6911627

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/cpp/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ void run(int repetitions, const std::vector<char> &cs_buf, double &avg_time) {
125125
d.start(c, /* force_precise */ false,
126126
/* want_fastest */ true);
127127

128-
bool more_samples = true;
128+
d.get_recommended_stripe_heights(8, max_stripe_height, stripe_heights, NULL);
129129

130+
bool more_samples = true;
130131
while (more_samples) {
131-
d.get_recommended_stripe_heights(8, max_stripe_height, stripe_heights, NULL);
132132

133133
if (is_planar) {
134134
if (component_sz > 1) {
@@ -149,7 +149,7 @@ void run(int repetitions, const std::vector<char> &cs_buf, double &avg_time) {
149149
}
150150
}
151151

152-
d.reset();
152+
d.finish();
153153

154154
buffer.seek(0);
155155
c.restart(&buffer);

0 commit comments

Comments
 (0)