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 30E0B200B71 for ; Wed, 17 Aug 2016 00:43:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2F6FA160ABA; Tue, 16 Aug 2016 22:43:24 +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 9B414160AA8 for ; Wed, 17 Aug 2016 00:43:23 +0200 (CEST) Received: (qmail 14062 invoked by uid 500); 16 Aug 2016 22:43:22 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 14049 invoked by uid 99); 16 Aug 2016 22:43:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2016 22:43:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 970C02C02A1 for ; Tue, 16 Aug 2016 22:43:22 +0000 (UTC) Date: Tue, 16 Aug 2016 22:43:22 +0000 (UTC) From: "Daryn Sharp (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-10768) Optimize mkdir ops MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 16 Aug 2016 22:43:24 -0000 [ https://issues.apache.org/jira/browse/HDFS-10768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daryn Sharp updated HDFS-10768: ------------------------------- Attachment: HDFS-10768.patch A few tweaks to IIP methods. Logic is mostly shuffled around a bit to concentrate recursive dir creation in createParentDirectories. This uses a for loop and passes the original component byte[]s. > Optimize mkdir ops > ------------------ > > Key: HDFS-10768 > URL: https://issues.apache.org/jira/browse/HDFS-10768 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Attachments: HDFS-10768.patch > > > Directory creation causes excessive object allocation: ex. an immutable list builder, containing the string of components converted from the IIP's byte[]s, sublist views of the string list, iterable, followed by string to byte[] conversion. This can all be eliminated by accessing the component's byte[] in the IIP. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org