carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mayunSaicmotor <>
Subject [GitHub] incubator-carbondata pull request #638: [Carbondata 748] use binary search i...
Date Fri, 10 Mar 2017 15:16:42 GMT
Github user mayunSaicmotor commented on a diff in the pull request:
    --- Diff: core/src/main/java/org/apache/carbondata/core/util/ ---
    @@ -419,6 +419,94 @@ public static int getFirstIndexUsingBinarySearch(FixedLengthDimensionDataChunk
         return -(low + 1);
    +  public static int[] getRangeIndexUsingBinarySearch(
    --- End diff --
    you are right, I  really done binary search even for getting the ranges previously, but
yesterday I done performance test and found the  performance is not better than current logic.
the binary search range has advantage only under the condition of  data array size is very
long  and the repeated data is too much. But usually the data array size is 12000 for a chunk,
not too long. So  the binary search range has no advantage and I decide to keep the current

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message