2 ms·
IIRC, switch statements bigger than a certain sizes are compiled to jump tables. So it's just a static jump after the code finds a working method. In theory, i
by bayindirh 8y ago
IIRC, switch statements bigger than a certain sizes are compiled to jump tables. So it's just a static jump after the code finds a working method.
In theory, it's a very cheap piece of assembly after that point.