I propose the usage of dataclasses.dataclass for Score objects. In particular, the usage of slots: the memory savings while querying hundreds of thousands of scores might be notable. Benchmarking is, of course, encouraged.
In the case that a backwards-incompatible interface is deemed acceptable, the usage of namedtuples could also yield some benefit.
I propose the usage of
dataclasses.dataclassforScoreobjects. In particular, the usage ofslots: the memory savings while querying hundreds of thousands of scores might be notable. Benchmarking is, of course, encouraged.In the case that a backwards-incompatible interface is deemed acceptable, the usage of
namedtuples could also yield some benefit.