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??
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
|