Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 084E61930E for ; Sat, 2 Apr 2016 02:38:26 +0000 (UTC) Received: (qmail 51780 invoked by uid 500); 2 Apr 2016 02:38:25 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 51727 invoked by uid 500); 2 Apr 2016 02:38:25 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 51713 invoked by uid 99); 2 Apr 2016 02:38:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Apr 2016 02:38:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6BAFD2C14FB for ; Sat, 2 Apr 2016 02:38:25 +0000 (UTC) Date: Sat, 2 Apr 2016 02:38:25 +0000 (UTC) From: "jean-claude (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-4573) Zero copy LIKE, REGEXP_MATCHES, SUBSTR MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 jean-claude created DRILL-4573: ---------------------------------- Summary: Zero copy LIKE, REGEXP_MATCHES, SUBSTR Key: DRILL-4573 URL: https://issues.apache.org/jira/browse/DRILL-4573 Project: Apache Drill Issue Type: Improvement Reporter: jean-claude Priority: Minor All the functions using the java.util.regex.Matcher are currently creating Java string objects to pass into the matcher.reset(). However this creates unnecessary copy of the bytes and a Java string object. The matcher uses a CharSequence, so instead of making a copy we can create an adapter from the DrillBuffer to the CharSequence interface. Gains of 25% in execution speed are possible when going over VARCHAR of 36 chars. The gain will be proportional to the size of the VARCHAR. -- This message was sent by Atlassian JIRA (v6.3.4#6332)