Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BB2E718332 for ; Tue, 4 Aug 2015 18:10:04 +0000 (UTC) Received: (qmail 89700 invoked by uid 500); 4 Aug 2015 18:10:04 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 89673 invoked by uid 500); 4 Aug 2015 18:10:04 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 89662 invoked by uid 99); 4 Aug 2015 18:10:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2015 18:10:04 +0000 Date: Tue, 4 Aug 2015 18:10:04 +0000 (UTC) From: "Matt McCline (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-11406) Vectorization: StringExpr::compare() == 0 is bad for performance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-11406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14654069#comment-14654069 ] Matt McCline commented on HIVE-11406: ------------------------------------- Committed to master. > Vectorization: StringExpr::compare() == 0 is bad for performance > ---------------------------------------------------------------- > > Key: HIVE-11406 > URL: https://issues.apache.org/jira/browse/HIVE-11406 > Project: Hive > Issue Type: Bug > Components: Vectorization > Affects Versions: 1.3.0, 2.0.0 > Reporter: Gopal V > Assignee: Matt McCline > Attachments: HIVE-11406.01.patch > > > {{StringExpr::compare() == 0}} is forced to evaluate the whole memory comparison loop for differing lengths of strings, though there is no possibility they will ever be equal. > Add a {{StringExpr::equals}} which can be a smaller and tighter loop. -- This message was sent by Atlassian JIRA (v6.3.4#6332)