jaxb-api icon indicating copy to clipboard operation
jaxb-api copied to clipboard

Performance penalty of unmarshalling without a SystemId

Open justinas-dabravolskas opened this issue 3 months ago • 0 comments

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 Screenshot 2024-11-23 at 10 37 31

justinas-dabravolskas avatar Nov 23 '24 15:11 justinas-dabravolskas