[issue41483] Do not acquire lock in MemoryHandler.flush() if no target defined

Irit Katriel report at bugs.python.org
Tue Aug 18 18:11:22 EDT 2020


Irit Katriel <iritkatriel at yahoo.com> added the comment:

I think it is unlikely that this change would make a measurable speedup (benchmarks would be needed to prove that it does).

And even if it does, it's for the case where no target has been set, in which case the logger isn't doing anything anyway. Why is this a case worth optimizing?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41483>
_______________________________________


More information about the Python-bugs-list mailing list