http://www.perlmonks.org?node_id=890394


in reply to Reducing memory footprint when doing a lookup of millions of coordinates

Never considered using a database instead of loading it all in memory? it may not be as fast as it is now (except for the loading time) but the memory footprint IMHO can be heavily reduced