in reply to Generating Unique numbers from Unique strings
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Generating Unique numbers from Unique strings
by Marshall (Canon) on Apr 03, 2016 at 14:25 UTC | |
by basiliscos (Pilgrim) on Apr 03, 2016 at 15:26 UTC | |
by Marshall (Canon) on Apr 03, 2016 at 19:43 UTC | |
by BrowserUk (Patriarch) on Apr 03, 2016 at 19:52 UTC | |
by Marshall (Canon) on Apr 03, 2016 at 19:56 UTC | |
by choroba (Cardinal) on Apr 03, 2016 at 16:23 UTC | |
by rjohn1 (Sexton) on Apr 03, 2016 at 16:48 UTC | |
by Marshall (Canon) on Apr 03, 2016 at 17:49 UTC |