in reply to Re^2: Generating Unique numbers from Unique strings
in thread Generating Unique numbers from Unique strings

Perl hashes are built in to Perl. They are implemented in carefully written and optimized C, so they run very fast. An algorithm you write in Perl will run on the Perl virtual machine, so will automatically run slower compared to the equivalent C code.

Of course, you could use Inline::C and code your algorithm in C with in your Perl program, but using Perl's hashes will be a lot easier.

  • Comment on Re^3: Generating Unique numbers from Unique strings