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 C73FD200B92 for ; Wed, 14 Sep 2016 02:48:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C5E91160AD2; Wed, 14 Sep 2016 00:48:25 +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 18CF5160AD8 for ; Wed, 14 Sep 2016 02:48:24 +0200 (CEST) Received: (qmail 80723 invoked by uid 500); 14 Sep 2016 00:48:24 -0000 Mailing-List: contact issues-help@systemml.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@systemml.incubator.apache.org Delivered-To: mailing list issues@systemml.incubator.apache.org Received: (qmail 80714 invoked by uid 99); 14 Sep 2016 00:48:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2016 00:48:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EB918C0B4A for ; Wed, 14 Sep 2016 00:48:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id e-MW8CE3Cmee for ; Wed, 14 Sep 2016 00:48:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id A62775F64D for ; Wed, 14 Sep 2016 00:48:21 +0000 (UTC) Received: (qmail 80198 invoked by uid 99); 14 Sep 2016 00:48:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2016 00:48:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B74B82C1B7D for ; Wed, 14 Sep 2016 00:48:20 +0000 (UTC) Date: Wed, 14 Sep 2016 00:48:20 +0000 (UTC) From: "Deron Eriksson (JIRA)" To: issues@systemml.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SYSTEMML-906) Use of `df.first` in MLContextUtil is a Bottleneck MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 14 Sep 2016 00:48:26 -0000 [ https://issues.apache.org/jira/browse/SYSTEMML-906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15488963#comment-15488963 ] Deron Eriksson commented on SYSTEMML-906: ----------------------------------------- I'll take a look at this. > Use of `df.first` in MLContextUtil is a Bottleneck > -------------------------------------------------- > > Key: SYSTEMML-906 > URL: https://issues.apache.org/jira/browse/SYSTEMML-906 > Project: SystemML > Issue Type: Improvement > Reporter: Mike Dusenberry > > The use of {{dataframe.first()}} at {{MLContextUtil.java:497}} causes a severe bottleneck if the input DataFrame is a lazy result of a compute-intensive chain. We should change this to use {{dataframe.schema}}, and then iterate over the types in the schema. > cc [~deron] -- This message was sent by Atlassian JIRA (v6.3.4#6332)