C++:switch
lastmod 2018-08-17created 2018-05-251 edits
Assembly
In MSVC, when there are 6 or more case statements, a JUMP using Hash computation together with __ImageBase is applied. So it is recommended to use a switch statement instead of an if statement where possible.