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

Jiri Klement jiri.klement at gmail.com
Tue Mar 10 19:12:30 GMT 2009


OK, here is another patch, this time using DateUtils from josm-ng.

On Tue, Mar 10, 2009 at 9:08 AM, Dirk Stöcker
<openstreetmap at dstoecker.de> wrote:
> 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)
>
> _______________________________________________
> josm-dev mailing list
> josm-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/josm-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timestamp.patch
Type: application/octet-stream
Size: 16884 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20090310/3da267be/attachment.obj>


More information about the josm-dev mailing list