Visitar URL original
multiprocessing: micro-optimize Connection.send_bytes() method · Issue #91355 · python/cpython · GitHub
Skip to content

multiprocessing: micro-optimize Connection.send_bytes() method #91355

Description

@animalize
mannequin
BPO 47199
Nosy @animalize
PRs
  • bpo-47199: multiprocessing: micro-optimize Connection.send_bytes() method #32247
  • 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 = None
    created_at = <Date 2022-04-02.06:28:23.157>
    labels = ['3.11', 'library', 'performance']
    title = 'multiprocessing: micro-optimize Connection.send_bytes() method'
    updated_at = <Date 2022-04-02.06:29:49.762>
    user = 'https://github.com/animalize'

    bugs.python.org fields:

    activity = <Date 2022-04-02.06:29:49.762>
    actor = 'malin'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2022-04-02.06:28:23.157>
    creator = 'malin'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 47199
    keywords = ['patch']
    message_count = 1.0
    messages = ['416538']
    nosy_count = 1.0
    nosy_names = ['malin']
    pr_nums = ['32247']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'resource usage'
    url = 'https://bugs.python.org/issue47199'
    versions = ['Python 3.11']

    Activity

    1. animalize commented on Apr 2, 2022

      animalizemannequin
      MannequinAuthor

      bytes(m) can be replaced by memoryview.cast('B'), then no need for data copying.

              m = memoryview(buf)
              # HACK for byte-indexing of non-bytewise buffers (e.g. array.array)
              if m.itemsize > 1:
                  m = memoryview(bytes(m))
              n = len(m)

      https://github.com/python/cpython/blob/v3.11.0a6/Lib/multiprocessing/connection.py#L190-L194

    2. added
      3.11only security fixes
      stdlibStandard Library Python modules in the Lib/ directory
      performancePerformance or resource usage
      on Apr 2, 2022
    3. transferred this issue fromon Apr 10, 2022
    4. added a commit that references this issue on May 3, 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.11only security fixesperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions