Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance of starting request handlers with Python 3.12+ #8661

Merged
merged 3 commits into from
Aug 8, 2024

Commits on Aug 8, 2024

  1. Improve performance of starting request handlers with Python 3.12+

    #3406 wrapped _handle_request in a task to copy the contextvars
    which delays the start of the request by one iteration of the
    event loop.
    
    In #8170 (reply in thread)
    we did not have a way to improve with without removing the task,
    however since Python 3.12+ has eager start for tasks, we can
    now avoid the delay.
    bdraco committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    a892e91 View commit details
    Browse the repository at this point in the history
  2. Improve performance of starting request handlers with Python 3.12+

    #3406 wrapped _handle_request in a task to copy the contextvars
    which delays the start of the request by one iteration of the
    event loop.
    
    In #8170 (reply in thread)
    we did not have a way to improve with without removing the task,
    however since Python 3.12+ has eager start for tasks, we can
    now avoid the delay.
    bdraco committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    3482ab3 View commit details
    Browse the repository at this point in the history
  3. changelog

    bdraco committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    a4a0dd3 View commit details
    Browse the repository at this point in the history