Re:Six times faster than C
by kevin_thibedeau on Thursday July 06, 2023 @08:26PM
(#36625306)
On x64, GCC is supposed to use a a jump table with more than 4 cases when the cases are dense enough (gaps of 9 or less) to minimize wasted memory, otherwise it generates sequential comparisons. Testing on Godbolt, it looks like GCC 13.1 uses 10 cases as the jump table threshold for ARM64.
[ Parent
| on HN ]
There are no comments on this comment yet.