-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add FieldValues iterator #46
Conversation
Codecov Report
@@ Coverage Diff @@
## master #46 +/- ##
==========================================
+ Coverage 65.31% 65.78% +0.47%
==========================================
Files 1 1
Lines 222 228 +6
==========================================
+ Hits 145 150 +5
- Misses 77 78 +1
Continue to review full report at Codecov.
|
Benchmarks:
I believe the advantage comes from |
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.
Looks good. You fixed the extra line before I had time to finish the review.
It's like
(getfield(x, i) for i in 1:nfields(x))
but faster.I considered making it a lazy array type instead but that was slower and I didn't feel like digging into why.