It has been observed that when using the Transfomer to convert a StreamSource to
DOMResult, the performance of Transform gets worse as the size of the
How to Reproduce :
The issue manifests in the form of Poor performance of SAAJ for Large Payloads.
SAAJ RI depends on the Transformer.
long start = System.currentTimeMillis();
MessageFactory mf =
MimeHeaders hdrs = new MimeHeaders();
SOAPMessage sm = mf.createMessage(hdrs, new FileInputStream(new
SOAPBody body = sm.getSOAPBody();
long end = System.currentTimeMillis();
System.out.println("Total Time Taken=" + (end - start)/1000);
Here msgAttach.xml is basically a SOAP Envelope with a large SOAPBody
Profiling has shown that 99.5% of the time is being spent on in
int) is calling
99.5% of time is spent here.