Settings

Theme

Show HN: msgspec-serde, Fast serialization for msgspec, flatbuffers, & arrays

github.com

2 points by yablak · 0 comments · 1 min read

Reader

msgspec-serde brings together the performance and flexibility of msgspec with other common data formats:

Representation of gridded data via NumPy arrays and views.

The cross-language and schema/IDL support of FlatBuffers.

It can generate typed msgspec.Struct models and read-only FlatBuffers views from .fbs schemas.

Its JSON, MessagePack, and FlatBuffers codecs also support very fast encoding/decoding of Structs containing NumPy arrays (with or without a FlatBuffers schema).

In my benchmarks, msgspec-serde encodes FlatBuffers about 20–22 times faster and decodes them into complete models about 11–13 times faster than the official Python FlatBuffers API.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection