You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by pa...@apache.org on 2021/01/07 16:07:43 UTC

[datasketches-java] 03/04: miniscule speedup

This is an automated email from the ASF dual-hosted git repository.

pavelvesely pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/datasketches-java.git

commit a8691817d3c98928c8ca33a66f47bd0b3c54bcbf
Author: Pavel Vesely <ve...@iuuk.mff.cuni.cz>
AuthorDate: Thu Jan 7 13:04:21 2021 +0100

    miniscule speedup
---
 src/main/java/org/apache/datasketches/req/ReqCompactor.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/apache/datasketches/req/ReqCompactor.java b/src/main/java/org/apache/datasketches/req/ReqCompactor.java
index d89b9e2..5c88410 100644
--- a/src/main/java/org/apache/datasketches/req/ReqCompactor.java
+++ b/src/main/java/org/apache/datasketches/req/ReqCompactor.java
@@ -232,6 +232,7 @@ class ReqCompactor {
     final float szf;
     final int ne;
     if (state >= 1L << numSections - 1
+        && sectionSize > MIN_K
         && (ne = nearestEven(szf = (float)(sectionSizeFlt / SQRT2))) >= MIN_K)
     {
       sectionSizeFlt = szf;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org