From issues-return-228385-apmail-flink-issues-archive=flink.apache.org@flink.apache.org Fri Apr 26 10:05:53 2019 Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id D299E183AB for ; Fri, 26 Apr 2019 10:05:52 +0000 (UTC) Received: (qmail 50641 invoked by uid 500); 26 Apr 2019 10:05:51 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 50607 invoked by uid 500); 26 Apr 2019 10:05:51 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 50598 invoked by uid 99); 26 Apr 2019 10:05:51 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2019 10:05:51 +0000 From: GitBox To: issues@flink.apache.org Subject: [GitHub] [flink] liyafan82 opened a new pull request #8278: [FLINK-12335][Table-runtime]Improvement the performance of class SegmentsUtil Message-ID: <155627314680.11403.6361856246358416239.gitbox@gitbox.apache.org> Date: Fri, 26 Apr 2019 10:05:46 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit liyafan82 opened a new pull request #8278: [FLINK-12335][Table-runtime]Improvement the performance of class SegmentsUtil URL: https://github.com/apache/flink/pull/8278 …entsUtil ## What is the purpose of the change Improve the performance of SegmentsUtil class : 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) ## Brief change log - Change class SegmentsUtil to fix the above 2 issues. ## Verifying this change Verified by manually running existing test cases. ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): (no) - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no) - The serializers: (no) - The runtime per-record code paths (performance sensitive): (yes) - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no) - The S3 file system connector: (no) ## Documentation - Does this pull request introduce a new feature? (no) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services