Commit 706fd4e
pythongh-142183: Cache one datachunk per tstate to prevent alloc/dealloc thrashing (python#145789)
Cache one datachunk per tstate to prevent alloc/dealloc thrashing when repeatedly hitting the same call depth at exactly the wrong boundary.
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>1 parent 4722202 commit 706fd4e
File tree
3 files changed
+28
-4
lines changed- Include/cpython
- Misc/NEWS.d/next/Core_and_Builtins
- Python
3 files changed
+28
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1564 | 1564 | | |
1565 | 1565 | | |
1566 | 1566 | | |
| 1567 | + | |
1567 | 1568 | | |
1568 | 1569 | | |
1569 | 1570 | | |
| |||
1714 | 1715 | | |
1715 | 1716 | | |
1716 | 1717 | | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
1717 | 1723 | | |
1718 | 1724 | | |
1719 | 1725 | | |
| |||
3045 | 3051 | | |
3046 | 3052 | | |
3047 | 3053 | | |
3048 | | - | |
3049 | | - | |
3050 | | - | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
3051 | 3068 | | |
3052 | 3069 | | |
3053 | 3070 | | |
| |||
3083 | 3100 | | |
3084 | 3101 | | |
3085 | 3102 | | |
| 3103 | + | |
3086 | 3104 | | |
3087 | 3105 | | |
3088 | 3106 | | |
3089 | 3107 | | |
3090 | | - | |
3091 | 3108 | | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
3092 | 3114 | | |
3093 | 3115 | | |
3094 | 3116 | | |
| |||
0 commit comments