in reply to How can I optimize my script?

Hi danielbenny.

See this post for a fast logger demonstration. I wrote the demonstration after reading your post but held off from posting the solution until after releasing MCE::Shared 1.827. In the sample code, localtime is called once per second, not per each write. The reason is that calling localtime or gmtime repeatedly is expensive.

MCE::Shared 1.827 will be available later this month. I'd come back and ping after releasing 1.827.

Regards, Mario.