1 Repo
Techniques for parsing only a subset of fields from a serialized data stream to reduce memory and CPU usage.
Distinct from Data Decoders: Focuses on parsing efficiency by ignoring undefined fields, unlike generic data decoders or benchmarks.
Explore 1 awesome GitHub repository matching software engineering & architecture · Selective Decoding. Refine with filters or upvote what's useful.
msgspec is a high-performance data modeling, serialization, and schema validation toolkit for Python. It serves as a type-safe serialization framework that integrates schema enforcement and data parsing into a single pass, functioning as both a data serialization library and a schema validation system based on standard Python type annotations. The project distinguishes itself through high-performance structural primitives, including compilation-based routine generation and zero-copy buffer parsing. It optimizes memory usage via garbage collection-aware layouts and reduces processing overhead
Improves decoding speed and reduces memory allocations by ignoring input fields not defined in the schema.