[web-devel] Caching the System time

Gregory Collins greg at gregorycollins.net
Mon Aug 8 20:29:00 CEST 2011

On Mon, Aug 8, 2011 at 4:16 PM, Greg Weber <greg at gregweber.info> wrote:

> Kazu profiled his code and found that using the current haskell date/time
> libraries was extremely expensive. He solved the issues by writing optimized
> date code. It is unclear how much benefit there would be to caching after
> switching to his optimized date code. He is planning to release his logging
> code as a separate package.

In Snap we call out to C. It could be that Kazu's code is faster (it can
probably be inlined to avoid a function call), but we don't call the time
code enough to make it worth checking.

Gregory Collins <greg at gregorycollins.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110808/e93a3ab6/attachment-0001.htm>

More information about the web-devel mailing list