python多进程下,使用ConcurrentRotatingFileHandler后还是很慢

python多进程下,使用ConcurrentRotatingFileHandler后还是很慢

按照网上的教程,我将RotatingFileHandler换成了ConcurrentRotatingFileHandler,解决了同时写入日志文件的问题,同时我已经按照教程将pip install ConcurrentLogHandler改为pip install concurrent-log-handler,但是这个ConcurrentRotatingFileHandler会频繁的锁,导致我的多进程非常的慢,甚至影响到了主线程的运行

img


img


img

是否是因为日志文件过大导致的呢?