[ 
https://issues.apache.org/jira/browse/PIG-2161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitriy V. Ryaboy closed PIG-2161.
----------------------------------


> TOTUPLE should use no-copy tuple creation
> -----------------------------------------
>
>                 Key: PIG-2161
>                 URL: https://issues.apache.org/jira/browse/PIG-2161
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Dmitriy V. Ryaboy
>            Assignee: Dmitriy V. Ryaboy
>            Priority: Trivial
>             Fix For: 0.10
>
>         Attachments: pig_2161.patch
>
>
> TOTUPLE udf gets an input tuple, creates a new list, puts every field from 
> the tuple into the list, and creates a new tuple by calling 
> TupleFactory.newTuple(List<Object>) method -- which in turn allocates 
> *another* list and copies everything in there.
> Simply returning the input tuple should be sufficient -- Pig already did the 
> work of putting the arguments into a tuple.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to