You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Ben Maurer (JIRA)" <ji...@apache.org> on 2009/05/02 00:29:30 UTC
[jira] Commented: (PIG-793) Improving memory efficiency of Tuple
implementation
[ https://issues.apache.org/jira/browse/PIG-793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705159#action_12705159 ]
Ben Maurer commented on PIG-793:
--------------------------------
What about generating a custom class for each type of tuple (eg using bcel). The tuple could be efficiently accessed by a custom-compiled operator for each field.
> Improving memory efficiency of Tuple implementation
> ---------------------------------------------------
>
> Key: PIG-793
> URL: https://issues.apache.org/jira/browse/PIG-793
> Project: Pig
> Issue Type: Improvement
> Reporter: Olga Natkovich
>
> Currently, our tuple is a real pig and uses a lot of extra memory.
> There are several places where we can improve memory efficiency:
> (1) Laying out memory for the fields rather than using java objects since since each object for a numeric field takes 16 bytes
> (2) For the cases where we know the schema using Java arrays rather than ArrayList.
> There might be more.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.