Basic performance results: In Mozilla, the lookup method is about 20% slower than a big if/else.
In IE, the lookup method is more than 15 times faster! Does this sound right to anyone? I'll check in the unit test in a bit, I am using the same test for both. It seems to be working properly, my conclusion right now is that if/else is just amazingly slow in IE for some reason, at least for strings. (I tried == and === as well, no difference) James Margaris
