Return-Path: X-Original-To: apmail-incubator-giraph-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-giraph-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6CFD8B356 for ; Wed, 18 Jan 2012 18:07:01 +0000 (UTC) Received: (qmail 46927 invoked by uid 500); 18 Jan 2012 18:07:01 -0000 Delivered-To: apmail-incubator-giraph-dev-archive@incubator.apache.org Received: (qmail 46890 invoked by uid 500); 18 Jan 2012 18:07:01 -0000 Mailing-List: contact giraph-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: giraph-dev@incubator.apache.org Delivered-To: mailing list giraph-dev@incubator.apache.org Received: (qmail 46881 invoked by uid 99); 18 Jan 2012 18:07:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 18:07:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Wed, 18 Jan 2012 18:06:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D4C671544A2 for ; Wed, 18 Jan 2012 18:06:39 +0000 (UTC) Date: Wed, 18 Jan 2012 18:06:39 +0000 (UTC) From: "Jakob Homan (Commented) (JIRA)" To: giraph-dev@incubator.apache.org Message-ID: <385059217.53288.1326909999872.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1667670385.53266.1326909641449.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (GIRAPH-126) Use Collections.emptyList() in BasicRPCCommunications.java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GIRAPH-126?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1318= 8572#comment-13188572 ]=20 Jakob Homan commented on GIRAPH-126: ------------------------------------ Looks good except for the introduction of two new empty lines. Andre, can = you remove these and upload a new patch? I'll commit that. Thanks. =20 > Use Collections.emptyList() in BasicRPCCommunications.java > ---------------------------------------------------------- > > Key: GIRAPH-126 > URL: https://issues.apache.org/jira/browse/GIRAPH-126 > Project: Giraph > Issue Type: Improvement > Reporter: Andr=C3=A9 Kelpe > Priority: Minor > Attachments: GIRAPH-126.patch > > > I am doing some tests with giraph and I am having some memory problems. W= hile I was browsing through the codebase I saw that you are allocating a ne= w ArrayList (which has an underlying array of 10 elements) for each Vertex,= that has no Messages to be delivered. That's a waste of memory and time. T= his patch replaces it with the EMPTY_LIST of the Collections utility class. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira