
Hello, I have implemented data-thread-less version: https://github.com/kazu-yamamoto/wai-logger/blob/master/Network/Wai/Logger/D... Since its performance is almost the same as the original, I have merged it into master. Tommorrow I will try using C's localtime() and strftime() as Snap does. --Kazu
Actually, the idea we'd been passing around was having an IORef with both the rendered time and the integral time. Whenever the rendered time is requested, we first compare the stored integral time with the current time. Only if there's a mismatch would we generate a new rendered time.
Thank you for explanation. Now I understand the idea passed around and what snap is doing. OK. I will implement this idea in wai-logger.
--Kazu
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel