Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D728A17A57 for ; Fri, 15 May 2015 10:09:00 +0000 (UTC) Received: (qmail 24603 invoked by uid 500); 15 May 2015 10:09:00 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 24553 invoked by uid 500); 15 May 2015 10:09:00 -0000 Mailing-List: contact issues-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 issues@flink.apache.org Received: (qmail 24287 invoked by uid 99); 15 May 2015 10:09:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2015 10:09:00 +0000 Date: Fri, 15 May 2015 10:09:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-1975) Graph getUndirected improvement 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/FLINK-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14545265#comment-14545265 ] ASF GitHub Bot commented on FLINK-1975: --------------------------------------- Github user vasia commented on the pull request: https://github.com/apache/flink/pull/653#issuecomment-102356828 No objections! Please go ahead @fhueske, thanks a lot ^^ > Graph getUndirected improvement > -------------------------------- > > Key: FLINK-1975 > URL: https://issues.apache.org/jira/browse/FLINK-1975 > Project: Flink > Issue Type: Improvement > Components: Gelly > Affects Versions: 0.9 > Reporter: Andra Lungu > Assignee: Andra Lungu > Priority: Minor > Labels: easyfix > > The current getUndirected method uses a union and a map to add the reverse edges to the graph. This could be done by simply using a flatMap that adds the edge and its reversed version - a flatMap is less expensive than a union followed by a map. -- This message was sent by Atlassian JIRA (v6.3.4#6332)