Raised This Month: $ Target: $400
 0% 

what is faster? switch or an array?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 03-31-2009 , 14:14   Re: what is faster? switch or an array?
Reply With Quote #1

Array good to use because:
-> fast access
-> easy to write
Bad:
-> uses memory unfortunately

Switch:
Good:
-> doesn't use memory
Bad:
-> hard to write (sometimes)

In this case I would advise the first ...
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 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 02:20.


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