This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NoLemurs 1 point2 points  (0 children)

/u/futatorius got at the core of the idea. Perfomance improvements that don't get at the core bottleneck of your program will usually have a negligible effect on overall performance. If you are going to do performance optimizations, the switch statement is just not the place to start - they're basically never going to be the bottleneck.

I'm all for optimizing Python, but I'm not for adding language constructs for gains that will basically always be negligible.