The Fastest Python Struct? (opens in new tab)
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
Read the original article