in reply to Re: Store larg hashes more efficiently (10e6 md5s in 260MB at 4µs per lookup)
in thread Store large hashes more efficiently
or even maybe:my $key = $i & 0xfffff000;
Indeed, your masking may partially explain why for 10e6 indexes, it takes 260MB, while doubling to 20e6 only increases to 426MB.my $key = ($i & 0xfffff000) >> 3;
$lookup[ $key ] .= pack 'va16', $i & 0xfff, $md5;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Store larg hashes more efficiently (10e6 md5s in 260MB at 4µs per lookup)
by BrowserUk (Patriarch) on Feb 27, 2013 at 01:00 UTC | |
by puterboy (Scribe) on Feb 27, 2013 at 03:28 UTC | |
by BrowserUk (Patriarch) on Feb 27, 2013 at 10:47 UTC | |
by puterboy (Scribe) on Feb 28, 2013 at 05:34 UTC |