[josm-dev] [PATCH] timestamp & parsedTimestamp in OsmPrimitive

Dirk Stöcker openstreetmap at dstoecker.de
Tue Mar 10 08:08:50 GMT 2009


On Tue, 10 Mar 2009, Jiri Klement wrote:

> I did some benchmarks and here are the results:
> no date handling at all - 17 seconds
> josm-ng date conversion - 19.5 seconds
> josm-ng date conversion done with char[] instead of string - 18.8 seconds.
>
> josm-ng version is 13% slower but that makes only 2.5 seconds on 80MB
> file. Also it allows more memory efficient storage of timestamp. I
> personally would  get rid of lazy parsing parsing and use Petr's
> version. What do you think?

If it slows down the import and has advantages during runtime I vote for 
the optimized version. I can live with a little bit longer import if the 
overall performance is increased.

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)




More information about the josm-dev mailing list