[OSM-dev] planet.osm

Nick Burch openstreetmap at gagravarr.org
Mon Aug 28 11:48:11 BST 2006


On Sun, 27 Aug 2006, David Sheldon wrote:
> On Sun, Aug 27, 2006 at 07:37:03PM +0100, Nick Burch wrote:
>> Does anyone know of a more memory efficient way to do a hashset in perl?
>> I'm currently using a normal perl hash, but all we really need to be able
>> to do is add ids to a hashset, and check if they're there.
>
> How about:
> http://www.cpan.org/modules/by-module/Bit/Bit-Vector-6.4.readme

That's the ticket :)

Right, planetosm-to-db.pl now needs a whopping 17mb when processing all of 
the world (including the tiger data). Hopefully that's now small enough 
for everyone!

Nick




More information about the dev mailing list