>perl -e"BEGIN{keys %h=2**23}"
-nE"$h{$_->[0]}=$_->[1] for [split];print qq[\r$.]" junk.dat
11000000
But it does use over 2GB of RAM.
If your system is taking substantially longer than that, it could be that you are moving in to swapping, which would slow things down a lot.
If you are loading this hash frequently, then you'd probably be better to stick your data into a tied DB like SQLite.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
|