Closed SunDoge closed 11 months ago
Thanks for the PR! I've taken the liberty to finish it up - adding support for new types needs to be done in several places.
Note that zero-copy deserialization of buffers can also be handled through Ext types. When decoding an Ext
, the buffer passed to ext_hook
is a memoryview
into the original backing message. This was intended to support decoding large buffer-backed objects (like numpy arrays) in a zero-copy fashion.
The implementation enables zero-copy functionality when decoding msgpack by supporting deserialization directly to a memoryview. This is very useful for decoding large numpy array.