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
Currently stream_read populates user-provided slice by copying from internal representation. This intermediary copy is often unnecessary as raw stream data is often further deserialized and thus copied again.
Underneath stream data is stored as a series of RangeBuf. It could be beneficial to avoid unnecessary copy if there was a method like:
which populates slice with RangeBufs from internal storage up until requested len , or whatever is available in stream or up until out slice can't hold any more RangeBufs.
The text was updated successfully, but these errors were encountered:
Currently stream_read populates user-provided slice by copying from internal representation. This intermediary copy is often unnecessary as raw stream data is often further deserialized and thus copied again.
Underneath stream data is stored as a series of RangeBuf. It could be beneficial to avoid unnecessary copy if there was a method like:
which populates slice with RangeBufs from internal storage up until requested
len
, or whatever is available in stream or up untilout
slice can't hold any more RangeBufs.The text was updated successfully, but these errors were encountered: