[ https://issues.apache.org/jira/browse/PIG-2161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066016#comment-13066016 ]
Thejas M Nair commented on PIG-2161: ------------------------------------ +1. I don't see a reason why the tuple should be copied. > 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 > 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