Optimizng a Switch() statement
There must be a way to optimize this, I just can't think of it. :S
Code:
Thanks in advance. :crab: |
Re: Optimizng a Switch() statement
Code:
|
Re: Optimizng a Switch() statement
You have some mistakes:
Code:
+Karma when I can, still not solved. :crab: EDIT: Never mind, I'll just use your method but instead of 'h', 'f' and 's' I'll use 0, 1 and 2. :mrgreen: Thanks. |
Re: Optimizng a Switch() statement
Quote:
|
Re: Optimizng a Switch() statement
No it's not a mistake. Anyway, I'm sure if its way is really an optimization. Depending if this function is called often or not. Your way is enough, except maybe you could avoid to use copy.
|
Re: Optimizng a Switch() statement
Oh, I get it now!
Thanks both! And arkshine, it's kinda hard to say how often this function is called, but an optimization would be good anyways. And yeah, I won't use copy. :) +Karma(I still can't give you Exo). |
| All times are GMT -4. The time now is 01:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.