Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

61 regex perf #62

Merged
merged 5 commits into from
Feb 19, 2024
Merged

61 regex perf #62

merged 5 commits into from
Feb 19, 2024

Conversation

besok
Copy link
Owner

@besok besok commented Feb 19, 2024

closed #61

@besok besok merged commit a07c7b6 into main Feb 19, 2024
5 checks passed
xMAC94x added a commit to xMAC94x/jsonpath-rust that referenced this pull request May 17, 2024
besok pushed a commit that referenced this pull request Jun 4, 2024
* Revert "61 regex perf (#62)"

This reverts commit a07c7b6.

* try to get rid of JsonPathFinder and Boxes
 - JsonPathFinder interface does not really benefit from storing the json or path internally
 - trying to get rid of the Box<> that is used inside of JsonPathFinder

* some clippy fixes

* add benches for find slicing

equal bench with reuse     time:   [510.30 ns 512.16 ns 514.26 ns]
equal bench without reuse  time:   [21.436 µs 21.456 µs 21.479 µs]
regex bench with reuse     time:   [58.875 µs 58.925 µs 58.975 µs]
regex bench without reuse  time:   [85.324 µs 85.416 µs 85.517 µs]
JsonPathInst generation    time:   [23.988 µs 24.019 µs 24.052 µs]
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.

Regex bad performance
1 participant