Uh oh!
There was an error while loading. Please reload this page.
gh-128588: gh-128550: remove eager tasks optimization that missed and introduced incorrect cancellations - #129063
Conversation
…t missed and introduced incorrect cancellations
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…J5TOL.rst Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…J5TOL.rst Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Thanks @graingert for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…t missed and introduced incorrect cancellations (pythonGH-129063) (cherry picked from commit ed6934e) Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Sorry, @graingert and @kumaraditya303, I could not cleanly backport this to |
GH-129089 is a backport of this pull request to the 3.13 branch. |
…sed and introduced incorrect cancellations (GH-129063) (#129089) gh-128588: gh-128550: remove eager tasks optimization that missed and introduced incorrect cancellations (GH-129063) (cherry picked from commit ed6934e) Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
…t missed and introduced incorrect cancellations (python#129063) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
itamaro
commented
Jan 20, 2025
What's the impact of removing this optimization on the async_tree pyperformance benchmarks? |
kumaraditya303
commented
Jan 21, 2025
I haven't benchmarked yet, I'll do it but I expect an insignificant impact. |
…t missed and introduced incorrect cancellations (python#129063) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
itamaro
commented
Feb 2, 2025
any update on benchmarking results @kumaraditya303 ? benchmarking of the original PR showed up to 4x speedup on some of the async benchmarks. anything changed that you expect removing the optimization would have insignificant impact? |
kumaraditya303
commented
Feb 3, 2025
I had asked Michael to benchmark this last week but I haven't heard back from them, I'll ping them again but meanwhile I compared the rough number by comparing benchmarks with and without this patch and I don't see any large slowdown on the benchmarks: With this PR: |
kumaraditya303
commented
Feb 4, 2025
itamaro
commented
Feb 9, 2025
Hmm, I think I see what's going on here.. Looking more closely at the original PR, it appears the benchmarking used a patched version of pyperformance to add an "eager" flavor to the async tree benchmarks. Since these flavors don't exist in the released version of pyperformance, we don't see them in the benchmark runs... |


… introduced incorrect cancellations