ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject Re: Ant log statements being created even when not used
Date Tue, 26 Sep 2006 02:26:36 GMT
> *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


Mime
View raw message