File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -891,10 +891,11 @@ holds execution information. The following are new frame optimizations:
891891- Streamlined the internal frame struct to contain only essential information.
892892 Frames previously held extra debugging and memory management information.
893893
894- Old-style frame objects are now created only when required by debuggers. For
895- most user code, no frame objects are created at all. As a result, nearly all
896- Python functions calls have sped up significantly. We measured a 3-7% speedup
897- in pyperformance.
894+ Old-style frame objects are now created only when requested by debuggers or
895+ by Python introspection functions such as ``sys._getframe `` or
896+ ``inspect.currentframe ``. For most user code, no frame objects are
897+ created at all. As a result, nearly all Python functions calls have sped
898+ up significantly. We measured a 3-7% speedup in pyperformance.
898899
899900(Contributed by Mark Shannon in :issue: `44590 `.)
900901
You can’t perform that action at this time.
0 commit comments