Skip to content

Commit

Permalink
simplified the slow input example
Browse files Browse the repository at this point in the history
  • Loading branch information
PBetzler committed Aug 22, 2024
1 parent c476a04 commit 1c5f096
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/advanced_examples/explore_me.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ void ExploreCompressedInputChecks(const uint8_t *Data, size_t Size){
void ExploreSlowInputsChecks(int a, int b){
if (a == 48664131) {
for (int i = 0; i < b; i++) {
if (i == (b-1)) {
break;
}

if (i % 1000 == 0) {
std::cout << "In loop at position: " << i <<" of " <<b << std::endl;
if (i % 100'000'000 == 0) {
std::cerr << "In loop at position: "
<< std::to_string(i)
<< " of "
<< std::to_string(b)
<< std::endl;
}
}
}
Expand Down

0 comments on commit 1c5f096

Please sign in to comment.