in reply to Re^4: Generating Unique numbers from Unique strings
in thread Generating Unique numbers from Unique strings
An array access by index will be faster than a hash table lookup, but not by all that much unless you do this a bazillion times.
Accessing an array is measurably, and for some things substantially, faster than accessing a hash; but the big problems with using an array for the OPs usage are:
Perl's hashes take care of this; and do so very efficiently.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Generating Unique numbers from Unique strings
by Marshall (Canon) on Apr 03, 2016 at 19:56 UTC |