in reply to Re^2: When should I use a dispatch table?
in thread When should I use a dispatch table?
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: When should I use a dispatch table?
by Limbic~Region (Chancellor) on Dec 01, 2006 at 00:18 UTC |