1 مستودع
Optimization that excludes fields from serialized output if they match their defined default values.
Distinct from Schema Default Values: Focuses on reducing output payload size, whereas Schema Default Values focus on providing fallbacks during input.
Explore 1 awesome GitHub repository matching software engineering & architecture · Default Value Omission. 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
Decreases message size by omitting fields that match their default values during encoding.