View Single Post
Old 10-28-2006, 09:51 PM   #12 (permalink)
daat99
RunUO Forum Moderator
 
daat99's Avatar
 
Join Date: Dec 2004
Location: Israel
Age: 27
Posts: 8,163
Send a message via ICQ to daat99 Send a message via AIM to daat99
Default

Quote:
Originally Posted by noobie
I really doubt using switch with string concat would much faster than regular a few if-else statements. btw it also has to build that look up table.

anyway event it were faster, does it really matter? how faster could it make it in such a simple case?? nanoseconds??
On the countrary, using a string will be a lot slower than if/else.
When you do a lot of string operations you really use a lot more cpu than you may think, you should really avoid string operations where possible.
__________________
I always try to help
Sometimes, I don't know how....

My Web Page
Forum Rules
-------------------------------------------------------------
Extensive OWLTR System | Token System | World Teleporters
-------------------------------------------------------------
daat99 is offline   Reply With Quote