[jdom-interest] JAXP performance problems

Tatu Saloranta cowtowncoder at yahoo.com
Sat Sep 16 17:11:22 PDT 2006


--- Jimmy Zhang <crackeur at comcast.net> wrote:

> Why would factory instantiation be so expensive???
> It doesn't make sense...

It actually isn't, it's the discovery process for
finding  the factory class to instantiate that is
rather expensive. And that is expensive since it
essentially may have to go through every single
JAR/directory in the effective class path of the
container.
And unfortunately the problem lies within abstract
JAXP factory base classes, not in the actual factory
implementations.

Factory instantiation is done using simple reflection
call, which while slightly less efficient than a
straight constructor call, is insignificant compared
to the discovery process.

-+ Tatu +-


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the jdom-interest mailing list