jaxb-api
jaxb-api copied to clipboard
Performance penalty of unmarshalling without a SystemId
Unmarshalling that uses InputSource
without SystemId
gets up to 30% performance penalty because of extensively generated exceptions in jakarta.xml.bind.helpers.ValidationEventLocatorImpl.toURL
. This case can easily be optimized by doing a null check inside toURL
instead of trying to construct URL
and catching MalformedURLException