[ 
https://issues.apache.org/jira/browse/HBASE-5958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13276001#comment-13276001
 ] 

Jimmy Xiang commented on HBASE-5958:
------------------------------------

By the way, is it an option to use reflection to access the private 
constructor? If so, I can have a wrap method to use the private constructor, or 
the original copyFrom if the private constructor is not accessible. Reflection 
has overhead of course.
                
> Replace ByteString.copyFrom with new ByteString()
> -------------------------------------------------
>
>                 Key: HBASE-5958
>                 URL: https://issues.apache.org/jira/browse/HBASE-5958
>             Project: HBase
>          Issue Type: Improvement
>          Components: performance
>    Affects Versions: 0.96.0
>            Reporter: Jimmy Xiang
>            Assignee: Jimmy Xiang
>             Fix For: 0.96.0
>
>
> ByteString.copyFrom makes a copy of a byte array in case it is changed in 
> other thread.
> In most case, we don't need to worry about that.  We should avoid copying the 
> bytes
> for performance issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to