Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4534B91EB for ; Mon, 5 Dec 2011 01:16:01 +0000 (UTC) Received: (qmail 63976 invoked by uid 500); 5 Dec 2011 01:16:01 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 63946 invoked by uid 500); 5 Dec 2011 01:16:01 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 63938 invoked by uid 500); 5 Dec 2011 01:16:01 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 63935 invoked by uid 99); 5 Dec 2011 01:16:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 01:16:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 01:16:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 10FB5C4FB9 for ; Mon, 5 Dec 2011 01:15:40 +0000 (UTC) Date: Mon, 5 Dec 2011 01:15:40 +0000 (UTC) From: "Dmitriy V. Ryaboy (Commented) (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <417737180.39920.1323047740070.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <597791773.25611.1321225552148.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (PIG-2359) Support more efficient Tuples when schemas are known MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PIG-2359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162547#comment-13162547 ] Dmitriy V. Ryaboy commented on PIG-2359: ---------------------------------------- Very rough (read: invalid, probably) speed test: modified SUM / LongSum to use a PLongTuple, and ran this code on excite.log from the tutorial: {code} l = load 'tutorial/data/excite-big.log' as (id:chararray, val:long, query:chararray); x = foreach (group l all) generate SUM(l.val); store x into '/tmp/foo'; {code} Before optimization: {code} real 0m14.785s user 0m22.516s sys 0m1.203s real 0m15.323s user 0m22.605s sys 0m1.182s real 0m14.841s user 0m22.600s sys 0m1.176s {code} after: {code} real 0m14.347s user 0m20.442s sys 0m1.095s real 0m14.344s user 0m20.241s sys 0m1.064s real 0m14.577s user 0m20.671s sys 0m1.087s {code} > Support more efficient Tuples when schemas are known > ---------------------------------------------------- > > Key: PIG-2359 > URL: https://issues.apache.org/jira/browse/PIG-2359 > Project: Pig > Issue Type: New Feature > Reporter: Dmitriy V. Ryaboy > Assignee: Dmitriy V. Ryaboy > Attachments: PIG-2359.1.patch, PIG-2359.2.patch > > > Pig Tuples have significant overhead due to the fact that all the fields are Objects. > When a Tuple only contains primitive fields (ints, longs, etc), it's possible to avoid this overhead, which would result in significant memory savings. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira