The Fastest Python Struct?
An adventure in Python struct benchmarking: slotted class, NamedTuple, dataclass, attrs, msgspec, record-type, and a new C extension based on record-type and msgspec. Focus is on import-time, type-construction, memory, and instantiation cost, NOT DE/SERIALIZATION, including impact of mypyc
Crumpled Paper