New issue 39 by hxliang1...@gmail.com: document.normalize in multi-thread
env has performance problem
http://code.google.com/p/xmltool/issues/detail?id=39
when doing normalize, DOMConfigurationImpl will be created if hasn't been,
while when constructing DOMConfigurationImpl, DTDDVFactory.getInstance will
be invoked and this method is globally synchronized.
So, when we were testing in multi-thread env, quite many threads are locked
at that "getInstance" method.
My question is, is it possible to add a flag to disable normalize?
Thanks.
BTW, seems that this lock only exists in JDK built-in xerces.
Comment #2 on issue 39 by mathieu....@gmail.com: document.normalize in
multi-thread env has performance problem
http://code.google.com/p/xmltool/issues/detail?id=39
Hi,
Thanks for the report. I'll check when I'll have some time.
Thanks for you reply. And btw, is it possible not to create an xpath
instance when building XMLDocDefinition since create an xpath instance is
time consuming in multi-thread env because of class loader lock.