Using a standard hash and pack like so, it requires 1.12GB to store the 10e6 key/value pairs:
$h{ pack 'V', $uintKey } = pack 'H*', $32byteHexValue;
Workable on most modern systems. How much smaller are you looking for?
In reply to Re^3: Store large hashes more efficiently
by BrowserUk
in thread Store large hashes more efficiently
by puterboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |