mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-31970: Reduce performance overhead of asyncio debug mode. (#4314)
* bpo-31970: Reduce performance overhead of asyncio debug mode.
This commit is contained in:
parent
1e5d54cfa0
commit
921e9432a1
7 changed files with 38 additions and 6 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