in reply to *SOLVED* High-speed Date Formatting
If they're all the same format (or possibly a sufficiently small number of formats), you may be able to use strptime. If you can get something that just hits the C func, it may be quite fast (and even if it doesn't, being able to specify a format rather than call a DWIM interpretation function should be faster anyway).
I see a POSIX::strptime that seems like it may thunk straight through to libc's implementation. DateTime::Format::Strptime looks like a perl reimplementation, so may be slower (but probably more portable, if your system's strptime is broken).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: High-speed Date Formatting
by rjt (Curate) on Jul 12, 2013 at 08:34 UTC |
In Section
Seekers of Perl Wisdom