You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Daryn Sharp (JIRA)" <ji...@apache.org> on 2016/08/16 22:43:22 UTC
[jira] [Updated] (HDFS-10768) Optimize mkdir ops
[ 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