> If one had a long page of functions (~50) that a script selected only > one from, which would be faster to use: a switch, an if/else > combination, or a variable function call?
overall switch and if/else will run about the same. if using === with if/else you are going to get some speed, but both are so comparable that it depends on what you are testing for. i personally, use switches over if/else for readability and coding style. the best thing would be to test it out and see which one is giving you the same results in speed. i doubt you are going to see anything different above ms in difference. -- ray _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
