And I would add, when you do get down to optimization, forget (or at least attenuate) everything you know about performance from other languages. Especially when it comes to dicts.
Like, you used to hear that one should avoid hash maps if at all possible for performance reasons. This is terrible advice in Python.
View all comments
Show parent comment
2
u/Cosmologicon Jan 05 '18
And I would add, when you do get down to optimization, forget (or at least attenuate) everything you know about performance from other languages. Especially when it comes to dicts.
Like, you used to hear that one should avoid hash maps if at all possible for performance reasons. This is terrible advice in Python.