[issue33606] Improve logging performance when logger disabled

2018-06-01 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue33606] Improve logging performance when logger disabled

2018-06-01 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 6e3ca645e71dd021fead5a70dc06d9b663612e3a by Vinay Sajip (Timo Furrer) in branch 'master': bpo-33606: improve logging performance when logger is disabled (GH-7285) https://github.com/python/cpython/commit/6e3ca645e71dd021fead5a70dc06d9b663612e3a -

[issue33606] Improve logging performance when logger disabled

2018-06-01 Thread Vinay Sajip
Vinay Sajip added the comment: The check in handle() should remain, because there are some scenarios where handle is called directly (e.g. when receiving events over a socket and dispatching to handlers). So the change would just be to add an additional check in isEnabledFor(). --

[issue33606] Improve logging performance when logger disabled

2018-05-31 Thread Timo Furrer
Change by Timo Furrer : -- keywords: +patch pull_requests: +6911 stage: needs patch -> patch review ___ Python tracker ___ ___ Pytho

[issue33606] Improve logging performance when logger disabled

2018-05-22 Thread Vinay Sajip
New submission from Vinay Sajip : If a logger is disabled (by setting it's disabled attribute to True), the check for this is done late in the dispatch of the logging event - during the handle() call - rather than isEnabledFor(), which would short-circuit some processing. So the check for logg