-
Notifications
You must be signed in to change notification settings - Fork 23
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
Enhancement: process each JSON Line separately #67
Comments
Interesting - so I guess it's not as pretty, but couldn't this already be done within
|
Yeah, that's correct. However, if I understand correctly, So implementing The downside would be that with I might implement this locally and see if it's actually useful. :-) |
Ah, I see! Yes, this is an option I've been kicking around as a possible alternative to full stream-based JSON processing. |
I'd like to have a switch (say,
-L
) that would cause jello to evaluateQUERY
once per JSON line in the input. I'm not sure if this would fit in with the jello philosophy, but it sure would help me eliminate CPython startup time (and shell boilerplate) while avoiding memory bloat.I think the JSON Line is a natural chunk size, because it avoids the problem of having to specify the chunk size (cf.
ijson
's "prefix" handling).Some contrived examples, in fish shell:
Think of it as analogous to Perl's
-p
switch if that helps.The text was updated successfully, but these errors were encountered: