Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How the CPython compiler works. Parent comment
If the case values are dense (such as just the integers from 0 to 9), the compiler will turn it into a jump table.
https://godbolt.org/z/1Khahr
If too sparse for jump table, then typically will be turned into a binary search tree.
There are no comments on this comment yet.
If the case values are dense (such as just the integers from 0 to 9), the compiler will turn it into a jump table.
https://godbolt.org/z/1Khahr
If too sparse for jump table, then typically will be turned into a binary search tree.