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

[jira] [Updated] (FLINK-12335) Remove useless code in SegmentsUtil

     [ https://issues.apache.org/jira/browse/FLINK-12335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Liya Fan updated FLINK-12335:
-----------------------------
    Summary: Remove useless code in SegmentsUtil  (was: Improvement the performance of class SegmentsUtil)

> Remove useless code in SegmentsUtil
> -----------------------------------
>
>                 Key: FLINK-12335
>                 URL: https://issues.apache.org/jira/browse/FLINK-12335
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / Runtime
>            Reporter: Liya Fan
>            Assignee: Liya Fan
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Improve the performance of class SegmentsUtil:
> To evaluate the offset, an integer is bitand with a mask to clear to low bits, and then shift right. The bitand is useless:
> ((index & BIT_BYTE_POSITION_MASK) >>> 3)



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