paul-rouse/mysql-simple

`parseTime` is 20x slower than an attoparsec parser

parsonsmatt opened this issue · 2 comments

cf byteverse/chronos#18 (comment)

Currently mysql-simple uses parseTime to parse the time. Using a custom attoparsec parser would make things faster and more memory efficient.

Chronos is interesting! Do you think the overall gain would be significant, in the context of the whole processing of a result?

That's the important question :) I'll have to write a benchmark for it! Someone on FPChat mentioned that parsing UTCTime out of a database query was taking 20% of the runtime of his app, which got me on this chase.