File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -891,10 +891,11 @@ holds execution information. The following are new frame optimizations:
891
891
- Streamlined the internal frame struct to contain only essential information.
892
892
Frames previously hel
8026
d extra debugging and memory management information.
893
893
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.
898
899
899
900
(Contributed by Mark Shannon in :issue: `44590 `.)
900
901
You can’t perform that action at this time.
0 commit comments