Commit a57989c
jeffrey.yasskin
Speed up Python (according to pybench and 2to3-on-itself) by 1-2% by caching
whether any thread has tracing turned on, which saves one load instruction in
the fast_next_opcode path in PyEval_EvalFrameEx(). See issue 4477.
git-svn-id: http://svn.python.org/projects/python/trunk@67494 6015fed2-1504-0410-9fe1-9d1591cc47711 parent 2c212ee commit a57989c
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
507 | 514 | | |
508 | 515 | | |
509 | 516 | | |
| |||
886 | 893 | | |
887 | 894 | | |
888 | 895 | | |
889 | | - | |
| 896 | + | |
| 897 | + | |
890 | 898 | | |
891 | 899 | | |
892 | 900 | | |
| |||
3414 | 3422 | | |
3415 | 3423 | | |
3416 | 3424 | | |
| 3425 | + | |
3417 | 3426 | | |
3418 | 3427 | | |
3419 | 3428 | | |
| |||
0 commit comments