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

Performant serialization helpers for msgspec and flatbuffers - ebrevdo/msgspec-serde
2 points by yablak 38 days ago github.com 0 comments
Summary not yet generated for this article.

Original Text

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.

Comments (0 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open