We are using opensaml
libraries version 3.3.0 and seeing that marshalling takes 25% of the time of the request that comes to my server endpoint for processing. Especially this call AbstractXMLObjectMarshaller.marshall
, similarly Signer.signObject
takes around 7% of the time. Is there any way to improve this performance? I am sure opensaml
library will have some kind of benchmarking.
Few things I have tried for this
- Using
ParserPool
instead ofDocumentBuilderFactory
- Making sure all builder factories and
marshallerFactory
is initialized once - Use of
prettyPrintXML
fromSerializedSupport
instead ofnodeToString
.