[OSM-dev] TIGER import code (v0.2)

Brandon Martin-Anderson badhill at gmail.com
Sat Jul 7 02:37:35 BST 2007


Building strings by concatenation in Ruby is a recipe for intense,
CPU-crunching pain. With each and every concatenation it creates a new
string and copies both strings over to the new memory space. This is the
source of the Ruby idiom of building a string by creating an array of
strings and joining them after the string-building is done. That alone is
inflating running time and memory by a factor of ten.

-B

On 7/6/07, Dave Hansen <dave at sr71.net> wrote:
>
> Changes from 0.1:
> - added tiger: prefix to a bunch of the tag names
> - greatly reduced memory usage
>
> http://sr71.net/~dave/osm/tiger/tiger-to-osm-0.2.tar.gz
>
> See the README in the tarball for more detailed information.
>
> -- Dave
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20070706/78dd87d7/attachment.html>


More information about the dev mailing list