Issue 39 in xmltool: document.normalize in multi-thread env has performance problem

4 views
Skip to first unread message

xml...@googlecode.com

unread,
Jun 28, 2011, 12:25:16 PM6/28/11
to xml...@googlegroups.com
Status: New
Owner: ----

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.

xml...@googlecode.com

unread,
Jun 28, 2011, 12:31:25 PM6/28/11
to xml...@googlegroups.com

Comment #1 on 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

BTW, seems that this lock only exists in JDK built-in xerces.

xml...@googlecode.com

unread,
Aug 21, 2011, 11:25:31 PM8/21/11
to xml...@googlegroups.com
Updates:
Status: Accepted
Owner: mathieu....@gmail.com
Labels: Type-Enhancement Priority-Low

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.

xml...@googlecode.com

unread,
Aug 22, 2011, 1:57:26 AM8/22/11
to xml...@googlegroups.com

Comment #3 on 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

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.

xml...@googlecode.com

unread,
Jul 29, 2013, 12:02:54 PM7/29/13
to xml...@googlegroups.com
Updates:
Status: GitHub

Comment #4 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

https://github.com/mycila/xmltool/issues/4

project migrating to github.
issue will be fix during migration.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

xml...@googlecode.com

unread,
Jul 29, 2013, 12:03:54 PM7/29/13
to xml...@googlegroups.com

Comment #5 on issue 39 by mathieu....@gmail.com: document.normalize in
Reply all
Reply to author
Forward
0 new messages