Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E1B632009C6 for ; Tue, 31 May 2016 22:05:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E08101609AD; Tue, 31 May 2016 20:05:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4641C160A46 for ; Tue, 31 May 2016 22:05:14 +0200 (CEST) Received: (qmail 11270 invoked by uid 500); 31 May 2016 20:05:13 -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 11229 invoked by uid 500); 31 May 2016 20:05:13 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 11212 invoked by uid 99); 31 May 2016 20:05:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 May 2016 20:05:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EF8812C1F5D for ; Tue, 31 May 2016 20:05:12 +0000 (UTC) Date: Tue, 31 May 2016 20:05:12 +0000 (UTC) From: "Rohini Palaniswamy (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PIG-4913) Reduce jython function initiation during compilation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 31 May 2016 20:05:15 -0000 [ https://issues.apache.org/jira/browse/PIG-4913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15308505#comment-15308505 ] Rohini Palaniswamy commented on PIG-4913: ----------------------------------------- https://issues.apache.org/jira/browse/PIG-4908?focusedCommentId=15308499&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15308499 can also be addressed as part of this. > Reduce jython function initiation during compilation > ---------------------------------------------------- > > Key: PIG-4913 > URL: https://issues.apache.org/jira/browse/PIG-4913 > Project: Pig > Issue Type: Improvement > Reporter: Rohini Palaniswamy > > While investigating PIG-4908, saw that ScriptEngine.getScriptAsStream was invoked way too many times during compilation phase for a simple script. > {code:title=sleep.py} > #!/usr/bin/python > import time; > @outputSchema("sltime:int") > def sleep(num): > if num == 1: > print "Sleeping for %d minutes" % num; > time.sleep(num * 60); > return num; > {code} > {code:title=sleep.pig} > register 'sleep.py' using jython; > A = LOAD '/tmp/sleepdata' as (f1:int); > B = FOREACH A generate $0, sleep($0); > STORE B into '/tmp/tezout'; > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)