Skip to content

Don't fill in stack trace in PathNotFoundException#751

Merged
kallestenflo merged 1 commit intojson-path:masterfrom
richardstartin:fillinstacktrace
Nov 4, 2021
Merged

Don't fill in stack trace in PathNotFoundException#751
kallestenflo merged 1 commit intojson-path:masterfrom
richardstartin:fillinstacktrace

Conversation

@richardstartin
Copy link
Contributor

This exception seems to be used for control flow, which leads to high CPU consumption.

Screenshot 2021-09-08 at 17 58 30

This change uses a standard trick to reduce the cost of exception based control flow to virtually nothing.

@r0goyal
Copy link
Contributor

r0goyal commented Sep 25, 2021

@kallestenflo We are also facing severe performance issues due to this. When can you help with the review and merge for this ?

@kallestenflo kallestenflo merged commit cc2432f into json-path:master Nov 4, 2021
@douglasawh
Copy link

@kallestenflo are there any plans to cut a new release with this in it? Thanks!

@jdimeo
Copy link

jdimeo commented Feb 17, 2026

This needs to be configurable for those that need to debug code and are OK with the performance hit. See #838

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants