You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have quite a large json file and it seems I don't see how to parse this without reading it in full, even with ondemand parsing.
I thought this should work:
Start parsing myself, check the beginning of an array. Now let simdjson do parsing exactly one object, not more, so that I can use the filepointer again to check if there should follow another object, then rinse and repeat.
The ondemand parser wants to alloc memory for the whole file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have quite a large json file and it seems I don't see how to parse this without reading it in full, even with ondemand parsing.
I thought this should work:
Start parsing myself, check the beginning of an array. Now let simdjson do parsing exactly one object, not more, so that I can use the filepointer again to check if there should follow another object, then rinse and repeat.
The ondemand parser wants to alloc memory for the whole file.
Did I overread how to this in the documentation?
Thanks for helping
Michael
Beta Was this translation helpful? Give feedback.
All reactions