Any time I see "Is it faster to do X or Y", I reach for Benchmark.
Make two subs, one with this routine and the other as you described it, then run 'em both through Benchmark and see for yourself which is faster. Without numbers, it's all speculation.
In reply to RE: Is a hash faster?
by myocom
in thread Is a hash faster?
by rkac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |