This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients gvanrossum, pitrou, vstinner, yselivanov
Date 2014-01-15.23:16:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389827766.09.0.239508574665.issue20275@psf.upfronthosting.co.za>
In-reply-to
Content
Here are two patches:

- logger_is_enabled_for.patch: use logger.isEnabledFor(INFO) to avoid the call
- add a _debug flag to BaseEventLoop

Benchmark:

- original: 3.90
- logger: 3.04
- _debug: 2.81

I like the _debug flag because it's faster, but I'm not sure that an attribute is the best place for the flag. asyncio needs maybe one global debug flag (ex: asyncio._DEBUG=True) replacing the existing asyncio.tasks._DEBUG flag.
History
Date User Action Args
2014-01-15 23:16:06vstinnersetrecipients: + vstinner, gvanrossum, pitrou, yselivanov
2014-01-15 23:16:06vstinnersetmessageid: <1389827766.09.0.239508574665.issue20275@psf.upfronthosting.co.za>
2014-01-15 23:16:06vstinnerlinkissue20275 messages
2014-01-15 23:16:06vstinnercreate