[jdom-interest] Recycling jdom elements ?
paul at activemath.org
Mon Sep 5 00:47:31 PDT 2005
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
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 ?
More information about the jdom-interest