Raised This Month: $ Target: $400
 0% 

Optimizng a Switch() statement


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-02-2009 , 18:10   Re: Optimizng a Switch() statement
Reply With Quote #1

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.
Arkshine is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 02-02-2009 , 23:54   Re: Optimizng a Switch() statement
Reply With Quote #2

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).
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode