[web-devel] Caching the System time

Johan Tibell johan.tibell at gmail.com
Fri Aug 5 17:25:48 CEST 2011


I thought the system time is already cached in user space. We get the
system time twice per event manager loop in the RTS already and
haven't seen any problems.

On Fri, Aug 5, 2011 at 10:57 AM, Greg Weber <greg at gregweber.info> wrote:
> Helllo Snap maintainers!
> We are finally getting around to implementing a robust logging solution
> within Yesod. This creates the issue of having to frequently access the
> system time. I see that Snap has a separate thread to get the system time
> and cache the result [1]. Are you happy with this implementation? Can it be
> placed in a separate package and shared between web frameworks?
> Thanks,
> Greg Weber
> [1] http://hackage.haskell.org/packages/archive/snap-server/0.2.2/doc/html/src/Snap-Internal-Http-Server-Date.html
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel
>
>



More information about the web-devel mailing list