Skip to content

Use fastpath in asyncio.sleep if delay<0 #76532

Closed

Description

@asvetlov
BPO 32351
Nosy @asvetlov, @1st1
PRs
  • bpo-32351: Use fastpath in asyncio.sleep if delay<0 #4908
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-12-17.14:42:09.626>
    created_at = <Date 2017-12-17.12:22:02.663>
    labels = ['3.7', 'expert-asyncio', 'library', 'performance']
    title = 'Use fastpath in asyncio.sleep if delay<0'
    updated_at = <Date 2017-12-17.14:42:09.625>
    user = 'https://github.com/asvetlov'

    bugs.python.org fields:

    activity = <Date 2017-12-17.14:42:09.625>
    actor = 'asvetlov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-12-17.14:42:09.626>
    closer = 'asvetlov'
    components = ['Library (Lib)', 'asyncio']
    creation = <Date 2017-12-17.12:22:02.663>
    creator = 'asvetlov'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32351
    keywords = ['patch']
    message_count = 2.0
    messages = ['308487', '308489']
    nosy_count = 2.0
    nosy_names = ['asvetlov', 'yselivanov']
    pr_nums = ['4908']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue32351'
    versions = ['Python 3.7']

    Activity

    1. asvetlov commented on Dec 17, 2017

      @asvetlov
      ContributorAuthor

      Currently asyncio.sleep schedules a callback execution by loop.call_later() call, which has the same behavior but 2x slower.

    2. added
      3.7 (EOL)
      stdlib
      on Dec 17, 2017
    3. asvetlov commented on Dec 17, 2017

      @asvetlov
      ContributorAuthor

      New changeset 5382c05 by Andrew Svetlov in branch 'master':
      bpo-32351: Use fastpath in asyncio.sleep if delay<0 (bpo-4908)
      5382c05

    4. added
      performance
      on Dec 17, 2017
    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)performancestdlibtopic-asyncio

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions