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 807EE2009F3 for ; Fri, 20 May 2016 10:39:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7F327160A0E; Fri, 20 May 2016 08:39:26 +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 CAF541609AF for ; Fri, 20 May 2016 10:39:25 +0200 (CEST) Received: (qmail 76116 invoked by uid 500); 20 May 2016 08:39:25 -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 76105 invoked by uid 99); 20 May 2016 08:39:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 May 2016 08:39:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4ECD5C3AE8 for ; Fri, 20 May 2016 08:39:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.612 X-Spam-Level: X-Spam-Status: No, score=0.612 tagged_above=-999 required=6.31 tests=[FREEMAIL_REPLYTO_END_DIGIT=0.25, RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id kxillYSHe0Ko for ; Fri, 20 May 2016 08:39:20 +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-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id C14FC5F4E4 for ; Fri, 20 May 2016 08:39:19 +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 u4K8dGPi032378; Fri, 20 May 2016 08:39:16 GMT Message-Id: <201605200839.u4K8dGPi032378@ip-10-146-233-104.ec2.internal> Date: Fri, 20 May 2016 08:39:10 +0000 From: "Youwei Wang (Code Review)" To: Youwei Wang <429222616@qq.com>, impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Marcel Kornacker , Jim Apple , Mostafa Mokhtar , Alex Behm , Tim Armstrong Reply-To: 429222616@qq.com X-Gerrit-MessageType: newpatchset Subject: =?UTF-8?Q?[Impala-CR](cdh5-trunk)_IMPALA-2809:_improve_ByteSwap_with_builtin_function_or_SSE_or_AVX2=0A?= X-Gerrit-Change-Id: I392ed5a8d5683f30f161282c228c1aedd7b648c1 X-Gerrit-ChangeURL: X-Gerrit-Commit: 74af3eed7ea76f833eae2ddfecebd382ce9046a0 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.10-rc0 archived-at: Fri, 20 May 2016 08:39:26 -0000 Youwei Wang has uploaded a new patch set (#5). Change subject: IMPALA-2809: improve ByteSwap with builtin function or SSE or AVX2 ...................................................................... IMPALA-2809: improve ByteSwap with builtin function or SSE or AVX2 Using SSE4.2/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 data is listed here: CPU: Intel(R) Core(TM) i5-4460 CPU@3.20GHz Runtime consumed for 1000000000 bytes: Impala ByteSwap: 1x SSE4.2 ByteSwap: 2.699x AVX2 Byteswap: 2.958x Runtime consumed for 16 bytes: Impala ByteSwap: 1x Improved scalar swap: 2.721x Change-Id: I392ed5a8d5683f30f161282c228c1aedd7b648c1 --- M be/src/benchmarks/CMakeLists.txt A be/src/benchmarks/bswap-benchmark.cc M be/src/util/bit-util.inline.h M be/src/util/cpu-info.cc M be/src/util/cpu-info.h 5 files changed, 1,265 insertions(+), 30 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala refs/changes/81/3081/5 -- 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: 5 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Youwei Wang <429222616@qq.com> Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Jim Apple Gerrit-Reviewer: Marcel Kornacker Gerrit-Reviewer: Mostafa Mokhtar Gerrit-Reviewer: Tim Armstrong Gerrit-Reviewer: Youwei Wang <429222616@qq.com>