Date of First Response: 2009-12-07 14:54:02 project_key: SOA New DocumentBuilder is created for each incoming message. This is unnecessary and can cause minor performance penalty.
Moved this up to 5.0.1 as there's a discussion on https://jira.jboss.org/jira/browse/SOA-1763 that probably affects this.
I have documented this for the Release Notes. The current draft text states: https://jira.jboss.org/jira/browse/SOA-1562 Currently, a new DocumentBuilder is created for each incoming message. This has a minor impact upon system performance.
Link: Added: This issue depends JBESB-3290
I assume this is talking about the SchemaValidationAction class. I replaced the DOM parsing with simply wrapping the message payload string in a StreamSource and passing it to the validator (i.e. no DOM parser). Modified one of the tests and it's x2 faster for 5000 iterations.
Updated in ESB codebase, will be in next merge.
Verified in CR1 sources
Release note draft states: https://jira.jboss.org/browse/JBESB-3290 A new DocumentBuilder was being created for each incoming message. This had a minor impact upon system performance. This has been resolved by eliminating the need for DOM parsing by simply wrapping the message payload string in a StreamSource and passing that to the validator instead. As a result, performance is now much faster.