Kevin Hearn
Joined: 30 Dec 2010 Posts: 108
|
Post subject: Re: make and unmake stadistics Posted: Tue Feb 28, 2012 4:16 pm |
|
|
| changing the order of the switch should not result in a speedup anyways, since the switch should be compiled as a jump table instead of a chain of if statements since it uses (presumably) contiguous values (0, 1, 2, 3, 4, 5, 6) - perhaps changing the order from that resulted in it compiling as not a jump table but i'd assume the compiler should rearrange them unless some of your case statements are not seperated by a break; |
|