[Openstreetmap-dev] CSV transport encoding scheme

SteveC steve at asklater.com
Fri Jan 27 14:05:16 GMT 2006


* @ 26/01/06 11:50:51 PM dave-osm at earth.li wrote:
> On Thu, Jan 26, 2006 at 11:37:23PM +0000, David Sheldon wrote:
> > I'm away for a few days, but if you want I can rewrite map.rb without
> > using REXML. Alternatively does ruby have a wrapper for expat that can
> > be used to write the XML? expat is a native XML library and should be a
> > little faster here.  
> 
> I should have actually checked, rather than just writing this when I
> thought of it. I changed my code to use the libxml wrappers
> (libxml.rubyforge.org or apt-get install libxml-ruby). And it now takes
> 0.22 seconds. 
> 
> I think that this will be the solution to our speed problems for the
> moment. Almost as fast as print, but with all the benefits of using an
> XML library. Unfortunatly I don't think I will have time to work on it
> before next Thursday, but if nobody else has worked on it, I will spend
> some time towards the end of next week changing the current code to use
> this.

That'd be useful... actually, roll back imi's changes and update ox.rb
and everything will use it.

have fun,

SteveC steve at asklater.com http://www.asklater.com/steve/




More information about the dev mailing list