mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
[3.6] bpo-31970: Reduce performance overhead of asyncio debug mode. (GH-4314) (#4322)
* bpo-31970: Reduce performance overhead of asyncio debug mode..
(cherry picked from commit 921e9432a1
)
This commit is contained in:
parent
518c6b9786
commit
d8d218ffda
7 changed files with 38 additions and 7 deletions
|
@ -5,3 +5,8 @@ LOG_THRESHOLD_FOR_CONNLOST_WRITES = 5
|
|||
|
||||
# Seconds to wait before retrying accept().
|
||||
ACCEPT_RETRY_DELAY = 1
|
||||
|
||||
# Number of stack entries to capture in debug mode.
|
||||
# The large the number, the slower the operation in debug mode
|
||||
# (see extract_stack() in events.py)
|
||||
DEBUG_STACK_DEPTH = 10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue