You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Liya Fan (JIRA)" <ji...@apache.org> on 2019/05/31 04:37:00 UTC

[jira] [Created] (FLINK-12687) ByteHashSet is always in dense mode

Liya Fan created FLINK-12687:
--------------------------------

             Summary: ByteHashSet is always in dense mode
                 Key: FLINK-12687
                 URL: https://issues.apache.org/jira/browse/FLINK-12687
             Project: Flink
          Issue Type: Improvement
          Components: Runtime / Operators
            Reporter: Liya Fan
            Assignee: Liya Fan


Since there are only 256 possible byte values, the largest possible range is 255, and the condition 

range < OptimizableHashSet.DENSE_THRESHOLD

must be satisfied. So ByteHashSet must be in dense mode.

We can make use of this to improve the performance and code structure.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)