← 输入框|github.com|刷新
Skip to content

Rewrite PipeConnection and Connection in pure Python #55952

Closed

Description

@pitrou
BPO 11743
Nosy @pitrou, @tjguk, @alex, @briancurtin
Files
  • mpconn.patch
  • pipebench.py
  • mpconn2.patch
  • 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 2011-05-09.15:49:44.104>
    created_at = <Date 2011-04-02.21:33:00.396>
    labels = ['type-feature', 'library']
    title = 'Rewrite PipeConnection and Connection in pure Python'
    updated_at = <Date 2011-05-10.02:30:51.906>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2011-05-10.02:30:51.906>
    actor = 'nirai'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-05-09.15:49:44.104>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2011-04-02.21:33:00.396>
    creator = 'pitrou'
    dependencies = []
    files = ['21506', '21516', '21926']
    hgrepos = []
    issue_num = 11743
    keywords = ['patch']
    message_count = 8.0
    messages = ['132816', '132835', '132846', '132848', '132881', '135480', '135595', '135597']
    nosy_count = 9.0
    nosy_names = ['pitrou', 'tim.golden', 'jnoller', 'nirai', 'alex', 'brian.curtin', 'asksol', 's7v7nislands', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue11743'
    versions = ['Python 3.3']

    Activity

    1. pitrou commented on Apr 2, 2011

      @pitrou
      MemberAuthor

      Here is a rewrite of multiprocessing.{PipeConnection,Connection} in pure Python, for ease of maintenance and improvement.

    2. added
      stdlib
      type-feature
      on Apr 2, 2011
    3. jnoller commented on Apr 3, 2011

      jnollermannequin
      Mannequin

      Nothing jumps out at me at initial review; I've asked other contributors/interested parties to take a look too. Thanks a ton Antoine for doing this work

    4. pitrou commented on Apr 3, 2011

      @pitrou
      MemberAuthor

      The patch slows down Pipe() a bit, by the way. On my machine, each message sent and received has an additional 10µs overhead. See attached benchmark script.

    5. pitrou commented on Apr 3, 2011

      @pitrou
      MemberAuthor

      Woops, sorry for the duplicates...

    6. asksol commented on Apr 3, 2011

      asksolmannequin
      Mannequin

      This is great! I always wondered if it was really necessary to use C for this. 10µs overhead should be worth it ;)

      I've read the patch, but not carefully. So far nothing jumps at me either.

      Cheers!

    7. pitrou commented on May 7, 2011

      @pitrou
      MemberAuthor

      Updated patch, fixing a sporadic failure in test_spawn_close.

    8. python-dev commented on May 9, 2011

      python-devmannequin
      Mannequin

      New changeset 1ac03e071d65 by Antoine Pitrou in branch 'default':
      Issue bpo-11743: Rewrite multiprocessing connection classes in pure Python.
      http://hg.python.org/cpython/rev/1ac03e071d65

    9. pitrou commented on May 9, 2011

      @pitrou
      MemberAuthor

      Now checked in, hopefully there will be no buildbot failures.

    10. 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

      stdlibtype-feature

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions