Message208214
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. |
|
Date |
User |
Action |
Args |
2014-01-15 23:16:06 | vstinner | set | recipients:
+ vstinner, gvanrossum, pitrou, yselivanov |
2014-01-15 23:16:06 | vstinner | set | messageid: <1389827766.09.0.239508574665.issue20275@psf.upfronthosting.co.za> |
2014-01-15 23:16:06 | vstinner | link | issue20275 messages |
2014-01-15 23:16:06 | vstinner | create | |
|