json-voorhees icon indicating copy to clipboard operation
json-voorhees copied to clipboard

Don't rely on exceptions in `value::count_path`

Open tgockel opened this issue 4 years ago • 0 comments

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.

tgockel avatar Mar 02 '20 22:03 tgockel