Switch VS IF
#13

Actually "switch" doesn't jump right into right case because it CAN NOT !
Speed is gained by generating only ONE(1) result and then comparing them to CASES, and "if" generate ONE(1) result per EVERY IF and then compare EACH so it's PURE LOGIC that switch is faster in that way.
Reply


Messages In This Thread
Switch VS IF - by Luka P. - 22.11.2009, 19:00
Re: Switch VS IF - by Correlli - 22.11.2009, 19:04
Re: Switch VS IF - by Luka P. - 22.11.2009, 19:14
Re: Switch VS IF - by Kyosaur - 22.11.2009, 19:19
Re: Switch VS IF - by Backwardsman97 - 22.11.2009, 19:19
Re: Switch VS IF - by FUNExtreme - 22.11.2009, 19:22
Re: Switch VS IF - by gotenks918 - 22.11.2009, 19:26
Re: Switch VS IF - by Backwardsman97 - 22.11.2009, 19:28
Re: Switch VS IF - by yom - 22.11.2009, 19:32
Re: Switch VS IF - by Correlli - 22.11.2009, 19:35
Re: Switch VS IF - by Luka P. - 22.11.2009, 19:39
Re: Switch VS IF - by Correlli - 22.11.2009, 19:50
Re: Switch VS IF - by Google63 - 22.11.2009, 20:02
Re: Switch VS IF - by Correlli - 22.11.2009, 20:51

Forum Jump:


Users browsing this thread: 2 Guest(s)