15/37
Part 3 of 6 · OrderedDictLearn and do

Keeping the order cost 137 to 180 bytes per entry, against a plain dict's 84

The order isn't free. Here is what each version costs in memory.

Predict

A Node object gets __slots__ = ("key", "value", "prev", "next"). What does that save?

Pick an answer above to see the rest