You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Rajesh Balamohan (JIRA)" <ji...@apache.org> on 2017/02/14 09:33:41 UTC
[jira] [Created] (HADOOP-14081) S3A: Consider avoiding array copy
in S3ABlockOutputStream (ByteArrayBlock)
Rajesh Balamohan created HADOOP-14081:
-----------------------------------------
Summary: S3A: Consider avoiding array copy in S3ABlockOutputStream (ByteArrayBlock)
Key: HADOOP-14081
URL: https://issues.apache.org/jira/browse/HADOOP-14081
Project: Hadoop Common
Issue Type: Improvement
Components: fs/s3
Reporter: Rajesh Balamohan
Priority: Minor
In {{S3ADataBlocks::ByteArrayBlock}}, data is copied whenever {{startUpload}} is called. It might be possible to directly access the byte[] array from ByteArrayOutputStream.
Might have to extend ByteArrayOutputStream and create a method like getInputStream() which can return ByteArrayInputStream. This would avoid expensive array copy during large upload.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org