Commit 8cc4cc6
aleksandr.tseluyko
gh-145860: Eliminate unnecessary refcount ops in BUILD_INTERPOLATION/BUILD_TEMPLATE
Make _PyInterpolation_Build and _PyTemplate_Build steal references to
their arguments instead of borrowing and incref'ing them. This avoids
redundant incref/decref pairs in the bytecode handlers, matching the
pattern already used by all other BUILD instructions.1 parent 5e9d90b commit 8cc4cc6
7 files changed
Lines changed: 56 additions & 141 deletions
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Modules/_testinternalcapi
- Objects
- Python
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
193 | 196 | | |
194 | 197 | | |
195 | 198 | | |
196 | | - | |
197 | | - | |
198 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
199 | 202 | | |
200 | 203 | | |
201 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 179 | + | |
183 | 180 | | |
184 | 181 | | |
185 | 182 | | |
| |||
292 | 289 | | |
293 | 290 | | |
294 | 291 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
| 292 | + | |
299 | 293 | | |
300 | 294 | | |
301 | 295 | | |
| |||
402 | 396 | | |
403 | 397 | | |
404 | 398 | | |
| 399 | + | |
| 400 | + | |
405 | 401 | | |
406 | 402 | | |
407 | 403 | | |
408 | | - | |
409 | | - | |
| 404 | + | |
| 405 | + | |
410 | 406 | | |
411 | 407 | | |
412 | 408 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2329 | 2329 | | |
2330 | 2330 | | |
2331 | 2331 | | |
2332 | | - | |
2333 | | - | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
2334 | 2336 | | |
2335 | 2337 | | |
2336 | 2338 | | |
2337 | | - | |
2338 | | - | |
2339 | | - | |
2340 | | - | |
2341 | | - | |
2342 | | - | |
2343 | | - | |
2344 | | - | |
| 2339 | + | |
| 2340 | + | |
2345 | 2341 | | |
2346 | 2342 | | |
| 2343 | + | |
2347 | 2344 | | |
2348 | 2345 | | |
2349 | | - | |
2350 | | - | |
| 2346 | + | |
2351 | 2347 | | |
2352 | 2348 | | |
2353 | 2349 | | |
2354 | 2350 | | |
2355 | 2351 | | |
2356 | | - | |
2357 | | - | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
2358 | 2356 | | |
2359 | | - | |
2360 | | - | |
2361 | 2357 | | |
2362 | 2358 | | |
2363 | 2359 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments