The python dict() is already high-quality and high-performance. You're probably not going to be able to do much better than the current state. If you want faster you end up moving your data into an environment that lets you make more assumptions and be more restrictive with your data and operate on it there. It's how numpy, polaris, and pandas work.
Everything in Python is a dict, there's no data structure that's been given more attention.
Everything in Python is a dict, there's no data structure that's been given more attention.
https://m.youtube.com/watch?v=p33CVV29OG8