Skip to content

Conversation

@jochenberger
Copy link
Contributor

It's quite expensive to create an exception and fill its stack. As we don't care about the stack anyway, we don't fill it, also we cache a single exception instance.
See http://java-performance.info/throwing-an-exception-in-java-is-very-slow/ for more info

…n exception and fill its stack. As we don't care about the stack anyway, we don't fill it, also we cache a single exception instance
kallestenflo added a commit that referenced this pull request Feb 18, 2016
@kallestenflo kallestenflo merged commit 2f690f0 into json-path:master Feb 18, 2016
@jochenberger jochenberger deleted the speed-up-evaluation-abort branch March 28, 2017 08:10
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.

2 participants