upvote
Because Python dicts guarantee iteration order is the same as insertion order (https://docs.python.org/3.7/library/stdtypes.html#typesmappi...) Python dicts aren’t just proper hash tables.

Because of that it wouldn’t surprise me much if that sped up some standard benchmarks, for example ones parsing lots of small json objects into dictionaries.

reply
It’s Python, you’ve already sacrificed performance, what a little bit more?
reply
That's the spirit!

(Slightly less silly: the folks at https://github.com/faster-cpython are doing great work, too.)

reply
Are they still? I thought this project was no longer really active.
reply