github jcrist/msgspec 0.7.0
Version 0.7.0

latest releases: 0.18.6, 0.18.5, 0.18.4...
2 years ago
  • Dramatically speedup JSON string decoding, up to 2x speedup in some cases (#118).
  • Adds a cache for decoding short (< 32 character) ASCII dict keys. This results in up to a 40% speedup when decoding many dicts with common keys using an untyped decoder. It's still recommended to define Struct types when your messages have a common structure, but in cases where no type is provided decoding is now much more performant (#120, #121).
  • Adds order and eq configuration options for Struct types, mirroring the dataclasses options of the same name. Order comparisons for Struct types are very performant, roughly 10x to 70x faster than alternative libraries (#122).
  • Speedup Struct decoding for both JSON and MessagePack, on average 20% faster (#119).
  • Various additional performance improvements, mostly to the JSON implementation (#100, #101, #102).
  • Add defstruct method for dynamically defining new Struct types at runtime (#105).
  • Fix ARM support and publish ARM wheels for Linux and Mac (#104).
  • Reduce published wheel sizes by stripping debug symbols (#113).
  • Fix a memory leak in Struct.__reduce__ (#117).
  • Rename nogc struct option to gc (a breaking change). To disable GC on a Struct instance you now want to specify gc=False instead of nogc=True (#124).

Don't miss a new msgspec release

NewReleases is sending notifications on new releases.