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 62267B86F for ; Wed, 18 Jan 2012 18:17:04 +0000 (UTC) Received: (qmail 65286 invoked by uid 500); 18 Jan 2012 18:17:03 -0000 Delivered-To: apmail-incubator-giraph-dev-archive@incubator.apache.org Received: (qmail 65212 invoked by uid 500); 18 Jan 2012 18:17:03 -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 64845 invoked by uid 99); 18 Jan 2012 18:17:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 18:17:03 +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:17:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C79211549F4 for ; Wed, 18 Jan 2012 18:16:39 +0000 (UTC) Date: Wed, 18 Jan 2012 18:16:39 +0000 (UTC) From: =?utf-8?Q?Andr=C3=A9_Kelpe_=28Updated=29_=28JIRA=29?= To: giraph-dev@incubator.apache.org Message-ID: <1897919256.53339.1326910599819.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1667670385.53266.1326909641449.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GIRAPH-126?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Andr=C3=A9 Kelpe updated GIRAPH-126: ------------------------------- Attachment: GIRAPH-126.patch remove empty lines and grant apache the correct lines =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 > Assignee: Andr=C3=A9 Kelpe > Priority: Minor > Attachments: GIRAPH-126.patch, GIRAPH-126.patch, 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