Skip to content

Performance issue because of PathNotFoundException #396

@jzarnikov

Description

@jzarnikov

EvaluationContextImpl.getValue() and getPath() throws PathNotFoundException. When Option.SUPPRESS_EXCEPTIONS is active then this exception is immediately caught in JsonPath and an empty value is returned.

This is a problem because creating exceptions is expensive (because of Throwable.fillInStackTrace()). When SUPPRESS_EXCEPTIONS is active then you're creating expensive stacktrace only to throw it away a moment later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions