Much faster
I’ve just pushed a couple of improvements to my ISO 8601 date formatter. Previously, it was pathetically slow compared to C standard library parsing and unparsing; now, it is faster.
Timing ISO8601DateFormatter Time taken: 0.130194 seconds Number of dates and strings computed: 10000 each Time taken per date: 0.000013 seconds Timing C standard library parsing and unparsing Time taken: 0.192645 seconds Number of dates and strings computed: 10000 each Time taken per date: 0.000019 seconds
You’ll want at least revision [61d2959c6921] or later.
My thanks to Sam Soffes and Rudy Richter for alerting me to the speed problem.
Edited at 16:35. Previously, it was almost as fast as C stdlib. Now it is faster.