[issue30962] Add caching to logging.Logger.isEnabledFor()

Avram report at bugs.python.org
Tue Jul 18 16:44:43 EDT 2017


Avram added the comment:

Yes, though the bottleneck for normal logging is more likely in other areas so the speedup will be less noticeable. Where I notice it is with debug statements when debugging is disabled. In that scenario the bulk of the time is spent checking if the level is enabled anywhere in the ancestry.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30962>
_______________________________________


More information about the Python-bugs-list mailing list