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 350BB200B29 for ; Thu, 16 Jun 2016 05:28:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 339FC160A57; Thu, 16 Jun 2016 03:28:36 +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 7C4E8160A4D for ; Thu, 16 Jun 2016 05:28:35 +0200 (CEST) Received: (qmail 29002 invoked by uid 500); 16 Jun 2016 03:28:34 -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 28989 invoked by uid 99); 16 Jun 2016 03:28:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2016 03:28:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C611C1A01CF for ; Thu, 16 Jun 2016 03:28:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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 mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id kk19oL4mf80z for ; Thu, 16 Jun 2016 03:28:31 +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 mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id E97EB5F4E5 for ; Thu, 16 Jun 2016 03:28:30 +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 u5G3ST0C032607; Thu, 16 Jun 2016 03:28:29 GMT Message-Id: <201606160328.u5G3ST0C032607@ip-10-146-233-104.ec2.internal> Date: Thu, 16 Jun 2016 03:28:25 +0000 From: "Youwei Wang (Code Review)" To: Youwei Wang , impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Marcel Kornacker , Jim Apple , Mostafa Mokhtar , Alex Behm , Tim Armstrong Reply-To: youwei.a.wang@intel.com X-Gerrit-MessageType: newpatchset 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: 9e93ce9c7322e6cf88a7fd113d6dfdca890e4d7f 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: Thu, 16 Jun 2016 03:28:36 -0000 Youwei Wang has uploaded a new patch set (#18). Change subject: IMPALA-2809: Improve ByteSwap with builtin function or SSSE3 or AVX2. ...................................................................... IMPALA-2809: Improve ByteSwap with builtin function or SSSE3 or AVX2. Using SSSE3/AVX2 intrinsic to accelerate the function "static inline void ByteSwap(void* dst, const void* src, int len)" of BitUtil class, and a scalar byte-swap routine is added as fallback. Also the runtime selector for CPUs of different capacity is included, as well as performance test and data verification. Brief performance comparison is listed here: CPU: Intel(R) Core(TM) i5-4460 CPU@3.20GHz Result: Old Impala: 1X Faster Scala: 1.021X SSSE3: 10.59X AVX2: 25.78X SIMD: 24.86X Change-Id: I392ed5a8d5683f30f161282c228c1aedd7b648c1 --- M be/src/benchmarks/CMakeLists.txt A be/src/benchmarks/bswap-benchmark.cc M be/src/exprs/string-functions-ir.cc M be/src/util/bit-util-test.cc M be/src/util/bit-util.inline.h M be/src/util/cpu-info.cc M be/src/util/cpu-info.h 7 files changed, 387 insertions(+), 31 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala refs/changes/81/3081/18 -- To view, visit http://gerrit.cloudera.org:8080/3081 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I392ed5a8d5683f30f161282c228c1aedd7b648c1 Gerrit-PatchSet: 18 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