
20 Oct
2009
20 Oct
'09
8:01 a.m.
Hi all. I had to parse dates from bytestrings efficiently and tried to use the parsedate library, but I had to port it to parsec3 to make it usable with bytestrings, and I could not get decent performance out of the resulting version due to ghc having difficulties with parsec3's generality, so I wrote bindings to strptime. Here they are: http://hackage.haskell.org/package/strptime They work for Strings and strict and lazy bytestrings. They are several orders of magnitude faster than parsedate and than Data.Time.readTime,parseTime (a program that ran in 40s with parsec3'd parsedate runs in less than 1s). -- Eugene Kirpichov Web IR developer, market.yandex.ru