-
Notifications
You must be signed in to change notification settings - Fork 1
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
Adds iterator_diff_
and iterator_intersect_
functions
#2
base: main
Are you sure you want to change the base?
Conversation
iterator_diff_
and iterator_intersect_
functionsiterator_diff_
and iterator_intersect_
functions
iterator_diff_
and iterator_intersect_
functionsiterator_diff_
and iterator_intersect_
functions
- Cleaned up exception tests with `toThrow` - Added benchmark tests for iterator_diff and iterator_map
Added 2 benchmark tests. It proves that There might be a way to speed things up a bit, but that would require an array hash-map, which will negate the memory benefits. So the only added value is you: can directly reference an iterator without the use of |
Unlike stated in the
README
it can be possible to implement_diff
and_intersect
functions by repeatedly looping of the provided iterators. Because this is probably not the most performant check, for now this PR is mostly an experiment. It remains to be seen if it will be released.This PR tries to implement the following functions:
iterator_diff
iterator_diff_assoc
iterator_diff_key
iterator_diff_uassoc
iterator_diff_ukey
iterator_udiff
iterator_udiff_assoc
iterator_udiff_uassoc
iterator_intersect
iterator_intersect_assoc
iterator_intersect_key
iterator_intersect_uassoc
iterator_intersect_ukey
iterator_uintersect
iterator_uintersect_assoc
iterator_uintersect_uassoc
Todo: