mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
GH-100000: Cleanup and polish various watchers code (GH-99998)
* Initialize `type_watchers` array to `NULL`s * Optimize code watchers notification * Optimize func watchers notification
This commit is contained in:
parent
aa8591e9ca
commit
ae83c78215
6 changed files with 37 additions and 14 deletions
|
|
@ -142,7 +142,6 @@ struct _is {
|
|||
// Initialized to _PyEval_EvalFrameDefault().
|
||||
_PyFrameEvalFunction eval_frame;
|
||||
|
||||
PyDict_WatchCallback dict_watchers[DICT_MAX_WATCHERS];
|
||||
PyFunction_WatchCallback func_watchers[FUNC_MAX_WATCHERS];
|
||||
// One bit is set for each non-NULL entry in func_watchers
|
||||
uint8_t active_func_watchers;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue