turned off lazy compression to match Java
diff --git a/req/include/req_sketch.hpp b/req/include/req_sketch.hpp
index c7389a1..ec24ab1 100755
--- a/req/include/req_sketch.hpp
+++ b/req/include/req_sketch.hpp
@@ -290,6 +290,8 @@
T* min_value_;
T* max_value_;
+ static const bool LAZY_COMPRESSION = false;
+
static const uint8_t SERIAL_VERSION = 1;
static const uint8_t FAMILY = 17;
static const size_t PREAMBLE_SIZE_BYTES = 8;
diff --git a/req/include/req_sketch_impl.hpp b/req/include/req_sketch_impl.hpp
index be29d30..d2f86dc 100755
--- a/req/include/req_sketch_impl.hpp
+++ b/req/include/req_sketch_impl.hpp
@@ -646,7 +646,7 @@
auto pair = compactors_[h].compact(compactors_[h + 1]);
num_retained_ -= pair.first;
max_nom_size_ += pair.second;
- if (num_retained_ < max_nom_size_) break;
+ if (LAZY_COMPRESSION && num_retained_ < max_nom_size_) break;
}
}
}