switch or if Faster?
Code:
switch(bool:variable)Code:
if(bool:variable) |
Re: switch or if Faster?
In this case, this dont make any difference.
|
Re: switch or if Faster?
if "if" have more else
shitch will faster?? look like Code:
|
Re: switch or if Faster?
In performing by CPU this looks the same.
|
Re: switch or if Faster?
Quote:
|
Re: switch or if Faster?
Quote:
Quote:
|
Re: switch or if Faster?
Switches are usually need when there is one or more possibility for a variable. If statements are usually 2 conditions.
|
Re: switch or if Faster?
|
| All times are GMT -4. The time now is 02:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.