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

Don't rely on exceptions in value::count_path #148

Open
tgockel opened this issue Mar 2, 2020 · 0 comments
Open

Don't rely on exceptions in value::count_path #148

tgockel opened this issue Mar 2, 2020 · 0 comments

Comments

@tgockel
Copy link
Owner

tgockel commented Mar 2, 2020

value::count_path relies on throwing std::out_of_range or kind_error to return 0 in cases where the provided path is not present or otherwise invalid. This is slower than needed. This should use the walk_path function directly instead.

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

No branches or pull requests

1 participant