[Twisted-Python] Twisted Log Efficiency is poor?

gelin yan dynamicgl at gmail.com
Thu Mar 15 10:54:57 EDT 2012


2012/3/15 Peng Xiao -X (penxiao - Digital China at Cisco) <penxiao at cisco.com
>

> Hi experts,****
>
> ** **
>
> I have a question about twisted log.****
>
> I used “from twisted.python import log” and “log.msg(msg_str)” to store
> log for my twisted program (about 40MB log message)****
>
> But it’s efficiency is poor, it will take more time to finish my program
> when the log is open, if I close the log, the program will be more faster
> than before.****
>
> What is the problem?****
>
> What should I do?****
>
> ** **
>
> ** **
>
> Best****
>
> Regards,****
>
>  ****
>
> Xiao Peng(肖鹏)****
>
> Cisco Systems****
>
> GSP-Beijing (China)****
>
> Office: +86 10 8507 7181****
>
> Mobile: +86 18600560077(preferred)****
>
> ** **
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
> Hi...If you log chunks data at once,, it definitely will chock your
reactor. I suggest split your data and log by using cooperate.

Regards

gelin yan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20120315/d82bbc04/attachment.htm 


More information about the Twisted-Python mailing list