Skip to content

Performance penalty of unmarshalling without a SystemId #315

@justinas-dabravolskas

Description

@justinas-dabravolskas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions