You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2010/10/29 00:20:28 UTC

[jira] Commented: (PIG-1696) Performance: Use System.arraycopy() instead of manually copying the bytes while reading the data

    [ https://issues.apache.org/jira/browse/PIG-1696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925969#action_12925969 ] 

Daniel Dai commented on PIG-1696:
---------------------------------

+1

> Performance: Use System.arraycopy() instead of manually copying the bytes while reading the data
> ------------------------------------------------------------------------------------------------
>
>                 Key: PIG-1696
>                 URL: https://issues.apache.org/jira/browse/PIG-1696
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Ashutosh Chauhan
>            Assignee: Ashutosh Chauhan
>            Priority: Minor
>             Fix For: 0.9.0
>
>         Attachments: dba_syscp.patch
>
>
> System.arraycopy() is said to be faster as compared to iterating over bytes and copying them over as it is implemented natively in JVM. Since every single byte read through PigStorage() will go through this code-path, this will have a performance impact.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.