[josm-dev] Date Parsing

Frederik Ramm frederik at remote.org
Thu Oct 11 20:40:23 BST 2007


Hi,

   I was trying to find out why the preparation of downloaded data
suddenly took so long. Suddenly I remembered something that Brett
Henderson had said about osmosis becoming unbearably slow when trying
to parse dates, and true: I was able to cut the time it required to
open my sample file from 16 seconds to 2 seconds just by commenting
out date parsing!

I have now settled on a method where the date is stored verbatim and
written out exactly like it was read, and only parsed when the
timestamp is required for display or processing (which doesn't happen
often in JOSM).

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00.09' E008°23.33'





More information about the josm-dev mailing list