in reply to performance - loops, sub refs, symbol tables, and if/elses
It's hard to answer this in isolation, because so much depends on the data and the rest of the program. If TYPE is consistent through the list, go for the outer-if.
Did you profile your program, though?
|
|---|