[jdom-interest] Recycling jdom elements ?
Paul Libbrecht
paul at activemath.org
Mon Sep 5 00:47:31 PDT 2005
Hi,
My little experience:
Since I introduced jdom parsing, xpath evaluation, modification, and
output in my process (which was purely text based originally,
processing fine thousands of text snippets), I am starting to get
OutOfMemoryErrors... This is all running inside Ant itself inside jEdit
and, in there, I am able to invoke System.gc() by a click. I am able to
avoid the OutOfMemoryError by doing enough of these clicks (a bit
sporty sometimes).
I will call System.gc() programmatically later... but in the meantime,
I realize that it would be very meaningful to recycle JDOM elements
(and, in particular, lists in them) instead of garbage-collecting them.
Has anyone made modifications to JDOM's code for this ?
thanks
paul
More information about the jdom-interest
mailing list