I am using CXF as webservice client for years and since the migration of my application from Java 8 to Java 11 I have noticed a performance degradation on very big request
after digging in the code I found following methods in DOMUtils.java
when getDomelement() method doesn't exist on the Node, an exception of type NoSuchMethodException is created which normally takes 1 milliseconds (mainly used to fill the stacktrace)
(similar problem for getDomDocumentFragment() method)
but if the document is really big and contains more than 30'000 elements, the repetitive creation of this exception could cost a some seconds ...
I have fixed this performance by caching node without getDomElement() method to avoid repetitive exception but I am not sure if it's a good solution
can you help me with this performance problem?