Message395738
> How common match-case statements with literal integers?
Nothing is common yet because the feature hasn't been released ;-)
I suspect that if match-case were optimized for integer constants, they would be used. In discussions about case statements, there are two groups, one looking for a prettier if-elif-else chain and the other looking for a fast vectored jump. This optimization is aimed at the latter group -- they would be happy to have this opportunity to make faster code, even if it means using integer constants. |
|
Date |
User |
Action |
Args |
2021-06-13 09:54:55 | rhettinger | set | recipients:
+ rhettinger, serhiy.storchaka, corona10, brandtbucher, Dennis Sweeney, AndersMunch, kj, Kshitiz17 |
2021-06-13 09:54:55 | rhettinger | set | messageid: <1623578095.82.0.0783055815132.issue44283@roundup.psfhosted.org> |
2021-06-13 09:54:55 | rhettinger | link | issue44283 messages |
2021-06-13 09:54:55 | rhettinger | create | |
|