3 ms·
Switch statements are O(n), but reading dialog config is O(1). It matters when trying to get the game loop to run at 60fps Edit: Evidently you can get O(1) fro
by butlike 2y ago
Switch statements are O(n), but reading dialog config is O(1). It matters when trying to get the game loop to run at 60fps
Edit: Evidently you can get O(1) from a Switch if the compiler converts it to jump statements. Just adding this for posterity, and to correct myself.