-
Notifications
You must be signed in to change notification settings - Fork 217
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
miller evaluates all records even when not needed #1653
Comments
There is indeed laziness and some early-out logic when
If we're getting readahead of over 500 records then that's a bug though ... |
(In C it was record-at-a-time lazy ... in Go it's 500-records-at-a-time lazy ....) |
OTOH this looks odd to me:
🤔 👀 |
Thanks for clarifying. Makes sense. I was running below in the logs and found it took a long time (11 seconds) when
|
@balki this needs fixing for sure. |
In the below example, only first 5 records are needed. But
system
input
has run for all the records as we can see in the tmp file.When in
head
is moved ahead ofput
, it works fine.It appears that each verb is run on all records before moving to rest. Can miller be made lazy? I understand it will not be possible when stats/grouping is used. But for simple case I thought it wold work lazy.
The text was updated successfully, but these errors were encountered: