[Twisted-Python] Twisted Log Efficiency is poor?

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)

2012/3/15 Peng Xiao -X (penxiao - Digital China at Cisco) <penxiao@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@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

On 02:34 am, penxiao@cisco.com wrote:
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?
Why are you logging 40 megabyte messages? That's not what the logging system is for. Jean-Paul
participants (3)
-
exarkun@twistedmatrix.com
-
gelin yan
-
Peng Xiao -X (penxiao - Digital China at Cisco)