in reply to Re: searching through data
in thread searching through data
one should use something likemy @array = map {int rand 1e6} 1..400000; ... $lookup_table{$_}++ for @array;
in order to save memory requirements. There is no need to have the list of numbers both in an array and in the hash.my %lookup_table = map {int rand 1e6 => 1} 1..400000;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: searching through data
by almut (Canon) on Apr 17, 2009 at 09:28 UTC |