Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 53EFA200B58 for ; Wed, 27 Jul 2016 10:51:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 52D68160A90; Wed, 27 Jul 2016 08:51:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 970DF160A6E for ; Wed, 27 Jul 2016 10:51:22 +0200 (CEST) Received: (qmail 47381 invoked by uid 500); 27 Jul 2016 08:51:21 -0000 Mailing-List: contact dev-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list dev@impala.incubator.apache.org Received: (qmail 47369 invoked by uid 99); 27 Jul 2016 08:51:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2016 08:51:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0617DC0362 for ; Wed, 27 Jul 2016 08:51:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ZNXB3Fnke2u5 for ; Wed, 27 Jul 2016 08:51:17 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E6AA25F396 for ; Wed, 27 Jul 2016 08:51:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id u6R8pF7K023488; Wed, 27 Jul 2016 08:51:15 GMT Message-Id: <201607270851.u6R8pF7K023488@ip-10-146-233-104.ec2.internal> Date: Wed, 27 Jul 2016 08:51:15 +0000 From: "Youwei Wang (Code Review)" To: Youwei Wang , impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Alex Behm , Marcel Kornacker , Mostafa Mokhtar , Jim Apple , Tim Armstrong Reply-To: youwei.a.wang@intel.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-CR=5D=28cdh5-trunk=29_IMPALA-2809=3A_Improve_ByteSwap_with_builtin_function_or_SSSE3_or_AVX2=2E=0A?= X-Gerrit-Change-Id: I392ed5a8d5683f30f161282c228c1aedd7b648c1 X-Gerrit-ChangeURL: X-Gerrit-Commit: 2d7fa69e8c2b70e4fc72c6737e1e02b482e95485 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.2 archived-at: Wed, 27 Jul 2016 08:51:23 -0000 Youwei Wang has posted comments on this change. Change subject: IMPALA-2809: Improve ByteSwap with builtin function or SSSE3 or AVX2. ...................................................................... Patch Set 38: (3 comments) http://gerrit.cloudera.org:8080/#/c/3081/36/be/src/util/bit-util-test.cc File be/src/util/bit-util-test.cc: PS36, Line 109: ByteSwapFun > ByteSwapFunc. Done http://gerrit.cloudera.org:8080/#/c/3081/36/be/src/util/bit-util.cc File be/src/util/bit-util.cc: Line 183: if (TEMPLATE_DATA_WIDTH > 16 && i >= 16) { > This branch cannot be taken if TEMPLATE_DATA_WIDTH <= 16, right? How about: Done Line 203: if (LIKELY(len < 16)) { > I think we should remove all these LIKELY() annotations unless we have benc Hi Tim. I have conduct some experiments about this LIKELY(). The corresponding result is recorded at this link: https://docs.google.com/document/d/1v7gSZSaDCPw_JKp-M-6z9zMPhiufp1PqdR5fDLav_i4/edit?usp=sharing Please feel free to share your idea here if you are willing to do so. Thank you :) -- To view, visit http://gerrit.cloudera.org:8080/3081 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I392ed5a8d5683f30f161282c228c1aedd7b648c1 Gerrit-PatchSet: 38 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Youwei Wang Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Jim Apple Gerrit-Reviewer: Marcel Kornacker Gerrit-Reviewer: Mostafa Mokhtar Gerrit-Reviewer: Tim Armstrong Gerrit-Reviewer: Youwei Wang Gerrit-HasComments: Yes