-
Notifications
You must be signed in to change notification settings - Fork 13
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
Simplifying get_useful_states with move iterator #353
Conversation
Just a straightforward use of the move iterator, should be no brainer. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## devel #353 +/- ##
==========================================
- Coverage 71.59% 71.52% -0.07%
==========================================
Files 30 30
Lines 3622 3603 -19
Branches 835 830 -5
==========================================
- Hits 2593 2577 -16
+ Misses 737 736 -1
+ Partials 292 290 -2
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the suggested, the use of iterators is elegant and readable. We will see how many uses the iterators have. Different variants can be added as needed, if we find them useful.
a0fe73a
to
d92fe19
Compare
It seems to be just a tad bit slower (due to creating the instances of the iterators), but the difference should not be that significant. The experiments will tell. |
Look at this to see an ultimate demonstration of the coolness of the davids move iterator.
Although, I am wandering whether it can be used anywhere else then here. I did not come with a good usage in the intersection for instance, because I wanted to get the vectors ot targets with the same symbol and then merge them. Maybe it is just my fault, but maybe we actually need something a bit different, I don't know.
For instance, iterator through symbol_post that skips over symbols where there are no targets ...
Just thinking.