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.