Return-Path: X-Original-To: apmail-flink-dev-archive@www.apache.org Delivered-To: apmail-flink-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 E9E4B1806F for ; Tue, 26 May 2015 07:42:18 +0000 (UTC) Received: (qmail 65090 invoked by uid 500); 26 May 2015 07:42:18 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 65039 invoked by uid 500); 26 May 2015 07:42:18 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 65025 invoked by uid 99); 26 May 2015 07:42:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 May 2015 07:42:18 +0000 Date: Tue, 26 May 2015 07:42:18 +0000 (UTC) From: "Till Rohrmann (JIRA)" To: dev@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLINK-2090) toString of CollectionInputFormat takes long time when the collection is huge MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Till Rohrmann created FLINK-2090: ------------------------------------ Summary: toString of CollectionInputFormat takes long time when the collection is huge Key: FLINK-2090 URL: https://issues.apache.org/jira/browse/FLINK-2090 Project: Flink Issue Type: Improvement Reporter: Till Rohrmann Priority: Minor The {{toString}} method of {{CollectionInputFormat}} calls {{toString}} on its underlying {{Collection}}. Thus, {{toString}} is called for each element of the collection. If the {{Collection}} contains many elements or the individual {{toString}} calls for each element take a long time, then the string generation can take a considerable amount of time. [~mikiobraun] noticed that when he inserted several jBLAS matrices into Flink. The {{toString}} method is mainly used for logging statements in {{DataSourceNode}}'s {{computeOperatorSpecificDefaultEstimates}} method and in {{JobGraphGenerator.getDescriptionForUserCode}}. I'm wondering whether it is necessary to print the complete content of the underlying {{Collection}} or if it's not enough to print only the first 3 elements in the {{toString}} method. -- This message was sent by Atlassian JIRA (v6.3.4#6332)