Skip to content

re.split performance degraded significantly by capturing group #68614

@PatrickMaupin

Description

@PatrickMaupin
BPO 24426
Nosy @ezio-melotti, @serhiy-storchaka
Files
  • splitter2.py: Script showing re.split capture performance problem
  • re_literal_prefix_with_groups.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 = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2015-06-21.11:10:26.437>
    created_at = <Date 2015-06-10.18:53:08.978>
    labels = ['expert-regex', 'performance']
    title = 're.split performance degraded significantly by capturing group'
    updated_at = <Date 2015-06-21.11:10:26.436>
    user = 'https://bugs.python.org/PatrickMaupin'

    bugs.python.org fields:

    activity = <Date 2015-06-21.11:10:26.436>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2015-06-21.11:10:26.437>
    closer = 'serhiy.storchaka'
    components = ['Regular Expressions']
    creation = <Date 2015-06-10.18:53:08.978>
    creator = 'Patrick Maupin'
    dependencies = []
    files = ['39676', '39684']
    hgrepos = []
    issue_num = 24426
    keywords = ['patch']
    message_count = 12.0
    messages = ['245137', '245139', '245141', '245144', '245145', '245184', '245198', '245310', '245316', '245319', '245326', '245589']
    nosy_count = 5.0
    nosy_names = ['ezio.melotti', 'mrabarnett', 'python-dev', 'serhiy.storchaka', 'Patrick Maupin']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue24426'
    versions = ['Python 3.6']

    Metadata

    Metadata

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions