Indeed, you can use hashing for your string, and then compare by hash-value. If the hash result does not match, that means that stings does not match too; but it hash matches, the full comparison for strings should be performed
You don't have to use cryptography hashes (i.e. MD, SHA), I can recommend you to use Digest::MurmurHash
In reply to Re: Generating Unique numbers from Unique strings
by basiliscos
in thread Generating Unique numbers from Unique strings
by rjohn1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |