- Support tagged unions for encoding/decoding a
Union
ofmsgspec.Struct
types. - Further improve encoding performance of
enum.Enum
by 20-30% - Reduce overhead of calling
msgspec.json.decode
/msgspec.msgpack.decode
withtype=SomeStructType
. It's still faster to create aDecoder
once and calldecoder.decode
multiple times, but for struct types the overhead of calling the top-level function is decreased significantly. - Rename the Struct option
asarray
toarray_like
(a breaking change)