[jdom-interest] performance with creating a document

philip.nelson at omniresources.com philip.nelson at omniresources.com
Mon May 21 20:17:27 PDT 2001


> > Its the element creation, and addContent's that take so long. 
> 
> What kind of times are you seeing?

This is very strange but I also need some perspective on the numbers.
Still, if JSP is faster...  Wait a minute, of course JSP would be faster if
what you mean is you get the data directly from your cmp/entity bean and
output via jsp.  You have skipped a lot of processing.  It should still be
acceptable performance though.

ideas:
-Is it possible that you have the jdom .java files in a dynamic classpath
where they are getting compiled each time?  ( I am having a problem with Ant
complaining about files being modified in the future that I still haven't
resolved)

-Could there be large amounts of errors getting logged somewhere?

-can you turn on more detailed logging to find out more about what is really
happening?

-Is your session distributed so that changes to the bean are causing
serialization?

-how exactly do you know which step is slow?

-what EJB engine do you use?  Some of them have problems with classloaders
when the ejb jar is separate from the other classes (or this used to be a
problem anyway)

Your document isn't that deeply nested or strange although you have left out
some of it.  Building is really pretty fast when done in memory and building
from another document does exactly the same thing.  



More information about the jdom-interest mailing list