by crazypython · 5y ago · 0 comments
static const char* countries[257];
Or even: static const char countrycodes[514];
return countrycodes[i * 2];A presentation on algorithm improvements popped up when looking into it (2015): https://llvm.org/devmtg/2015-10/slides/Wennborg-SwitchLoweri...
static const char countrycodes[514];
return countrycodes[i * 2];
Err... each of the strings is 3 bytes long.