Quote:
Originally posted by TribulationStaff
So, you admit, you just aren't adding three ifs, you are adding other things.
|
It's not an 'admission'. Obviously it would require more than three ifs; if there's no code inside the structures then what would be the point? The difference is that the code inside would be simple and efficient.
Quote:
|
And these "ranges" how would you define them?
|
Primary two: A-Z and a-z
Quote:
|
As for the length of the script, no, I think it is a lot more efficient to say "where is it located?" than several "is it this? No? Well is it that?"
|
Then you don't really understand scripting yet. Searching a string for a value
is the act of repeatedly checking values.
Quote:
|
indexof may start to be a less efficient piece of code when used 10000 times; but, from what I have seen of differences in efficiency at this level of iteration, I doubt that it's going to be a problem.
|
1) Efficiency isn't based on scale. Your approach
is less efficient, even if the difference between singular executions is only a couple of nanoseconds.
2) When used 10,000 times, huh? Tell me, what are you going to do with this base64 stuff? Could it be that you intend to iterate through 4096 tile specifications?