If it isn't too much work then I would definately think it is worth implementing the Time::Piece code. Some speed reduction is acceptable for the added functionality of the DateTime object but not this huge factor.
I'll jump in here Robin as I wrote the Strptime parser.
I'll take a look at the Time::Piece code and the XS Howto docs. I've never written an XS module but its about time I did.
P.S. One other suggestion, whilst I'm at it. The documentation for the strptime parsing contains this line:
* %N Nanoseconds. For other sub-second values use "%[number]N".
It is not at all obvious (to me) what 'number' represents. An example on how to use this for milliseconds might help clarify?
What do you mean? *I* know what I'm talking about! Are you suggesting that docs should be written for an audience other than oneself? Thanks for the pointer, I'll fix it in the next release.
Next Release Plan: - XS Version for those with compilers - Fix docs on subsecond precision - Fix spelling of Jonathan Leffler's name in the Changes
Cheers! Rick Measham
-- -------------------------------------------------------- There are 10 kinds of people: those that understand binary, and those that don't. -------------------------------------------------------- The day Microsoft makes something that doesn't suck is the day they start selling vacuum cleaners -------------------------------------------------------- "Write a wise proverb and your name will live forever." -- Anonymous --------------------------------------------------------
