Re:Why Python Runs Slow, Part 1: Data Structures
by the_mitsuhiko on Thursday February 13, 2014 @08:11AM
(#7231094)
Yep. Because the dictionary literal gets created via opcodes in the interpreter loop whereas the named tuple pays the price of calling a function and setting up an interpreter frame.
[ Parent
| on HN ]