Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: When should I use a dispatch table?by traveler (Parson) |
on Nov 30, 2006 at 23:53 UTC ( [id://587083]=note: print w/replies, xml ) | Need Help?? |
OK. But doesn't that make the ifelse code slower because it has to stringify and/or do string comparison, while the hash can do an integer comparison? I did try another test. Since the values were integers I replaced the dispatch table hash with an array and performance improved, but not enough to catch the ifelse. I am still quite confused.
In Section
Meditations
|
|