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
Suppose you have a very large JSON file containing a load of logs (strings). I want to transform them into another format, but I don't want to load all the logs into memory at once. Instead I basically want to store the file offset of those strings, and then later I want to be able to read each one lazily.
I think RawValuealmost does what I want, except you can't use it with from_reader().
Is there anything like RawValue but instead of borrowing from a string it stores the offset into the input and then requires you to pass a reader to it to get the value?
The text was updated successfully, but these errors were encountered:
Suppose you have a very large JSON file containing a load of logs (strings). I want to transform them into another format, but I don't want to load all the logs into memory at once. Instead I basically want to store the file offset of those strings, and then later I want to be able to read each one lazily.
I think
RawValue
almost does what I want, except you can't use it withfrom_reader()
.Is there anything like
RawValue
but instead of borrowing from a string it stores the offset into the input and then requires you to pass a reader to it to get the value?The text was updated successfully, but these errors were encountered: