Skip to content

Commit 1c5f096

Browse files
committed
simplified the slow input example
1 parent c476a04 commit 1c5f096

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/advanced_examples/explore_me.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ void ExploreCompressedInputChecks(const uint8_t *Data, size_t Size){
3636
void ExploreSlowInputsChecks(int a, int b){
3737
if (a == 48664131) {
3838
for (int i = 0; i < b; i++) {
39-
if (i == (b-1)) {
40-
break;
41-
}
42-
43-
if (i % 1000 == 0) {
44-
std::cout << "In loop at position: " << i <<" of " <<b << std::endl;
39+
if (i % 100'000'000 == 0) {
40+
std::cerr << "In loop at position: "
41+
<< std::to_string(i)
42+
<< " of "
43+
<< std::to_string(b)
44+
<< std::endl;
4545
}
4646
}
4747
}

0 commit comments

Comments
 (0)