Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 5A98117C58 for ; Sun, 1 Feb 2015 00:44:36 +0000 (UTC) Received: (qmail 33602 invoked by uid 500); 1 Feb 2015 00:44:35 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 33551 invoked by uid 500); 1 Feb 2015 00:44:35 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 33540 invoked by uid 99); 1 Feb 2015 00:44:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Feb 2015 00:44:35 +0000 Date: Sun, 1 Feb 2015 00:44:35 +0000 (UTC) From: "Gera Shegalov (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-11506) Configuration.get() is unnecessarily slow 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/HADOOP-11506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gera Shegalov updated HADOOP-11506: ----------------------------------- Attachment: HADOOP-11506.003.patch Thanks [~andrew.wang] for the thorough review. I added tests for 3-variable resolution loops, and javdoc you requested, fixed whitespaces. You are right about "}" in afterRightBrace definition. As for {code} bracePos > 0 && bracePos + "{c".length() < eval.length(); {code} The intuition is: {{bracePos}} points to a left brace '{' of the minimum valid var expression {{"$\{c}"}}. Thus, the closing right brace pos of the minimum valid var is {{bracePos + "{c".length}}. Adding some more comments. > Configuration.get() is unnecessarily slow > ----------------------------------------- > > Key: HADOOP-11506 > URL: https://issues.apache.org/jira/browse/HADOOP-11506 > Project: Hadoop Common > Issue Type: Bug > Reporter: Dmitriy V. Ryaboy > Assignee: Gera Shegalov > Attachments: HADOOP-11506.001.patch, HADOOP-11506.002.patch, HADOOP-11506.003.patch > > > Profiling several large Hadoop jobs, we discovered that a surprising amount of time was spent inside Configuration.get, more specifically, in regex matching caused by the substituteVars call. -- This message was sent by Atlassian JIRA (v6.3.4#6332)