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


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