From dev-return-75226-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Tue Sep 26 02:26:43 2006 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 21367 invoked from network); 26 Sep 2006 02:26:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2006 02:26:42 -0000 Received: (qmail 87148 invoked by uid 500); 26 Sep 2006 02:26:41 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 87113 invoked by uid 500); 26 Sep 2006 02:26:41 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 87102 invoked by uid 99); 26 Sep 2006 02:26:41 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Sep 2006 19:26:41 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=ddevienne@gmail.com; spf=pass Authentication-Results: idunn.apache.osuosl.org header.from=ddevienne@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 64.233.182.184 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [64.233.182.184] ([64.233.182.184:47066] helo=nf-out-0910.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 7B/B0-04364-FDF88154 for ; Mon, 25 Sep 2006 19:26:40 -0700 Received: by nf-out-0910.google.com with SMTP id x29so86177nfb for ; Mon, 25 Sep 2006 19:26:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tsyAFf6uTM4Zpi2ucB6qTPtXQVAUKJIcYo4cafaJB0vuIfRO/JnZSUby9s4Y488D5NNhzXz+GoqYBQCiROKW2pzNTwJCzqrVSk1hL+seUvdEoXwLklfLiyT8y4y5p7ds+MfJdST4rNBq5W7UO6ttwIqXnx4Rsr5r3Vni72W0nW4= Received: by 10.49.8.10 with SMTP id l10mr444061nfi; Mon, 25 Sep 2006 19:26:36 -0700 (PDT) Received: by 10.49.64.15 with HTTP; Mon, 25 Sep 2006 19:26:36 -0700 (PDT) Message-ID: <255d8d690609251926y57b42807ycbb23aff4375de88@mail.gmail.com> Date: Mon, 25 Sep 2006 21:26:36 -0500 From: "Dominique Devienne" To: "Ant Developers List" Subject: Re: Ant log statements being created even when not used In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060925142233.46462.qmail@web55103.mail.re4.yahoo.com> <255d8d690609250737he53651di2be5683bb12917a2@mail.gmail.com> <255d8d690609250740j11dab11cpba0a3036c15dfc4e@mail.gmail.com> <4517EC79.50000@apache.org> <255d8d690609250812u6097d4bfi4bb5d2460ead8813@mail.gmail.com> <877izrep3p.fsf@www.samaflost.de> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > *when* it's necessary. In the example/article D uses lazy or partial > evaluation to sort of get around this. In other languages there are > other mechanisms. In Java perhaps there's a way of refactoring the > logging such that Strings are re-used (use static final String and > build logging from them?) I'm favorable to refactoring the logging a bit to avoid unnecessary method calls and string concatenation, etc... but it's not a bit of String concatenation that makes VM run out of memory. Garbage collection does work, and gets rid of these string, before running out of memory (as per JVM spec). If there are memory leaks, lets find and address them, rather than kludging the code IMHO. --DD --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org