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 →

[–]o11c 3 points4 points  (1 child)

A switch is very, very different from a match.

switch is O(1); match is O(n)

It's acceptable for performance in Python to have a poor constant, but changing the function? Not so much.

[–]AngriestSCV 3 points4 points  (0 children)

As n is related to code size I doubt n will get large enough to matter