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.
In reply to Re: How can I optimize my script?
by marioroy
in thread How can I optimize my script?
by danielbenny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |