Skip to content

performance regression in string replace for 3.3 #60265

@BreamoreBoy

Description

@BreamoreBoy
BPO 16061
Nosy @loewis, @terryjreedy, @jcea, @pitrou, @vstinner, @benjaminp, @ezio-melotti, @serhiy-storchaka, @kushaldas
Files
  • unicode.patch
  • unicode_2.patch
  • replacebench.py: Microbenchmark for regularly distributed replacements
  • replacebench2.py: Microbenchmark for randomly distributed replacements
  • str_replace_1char.patch
  • str_replace_1char_2.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 2013-04-13.19:47:21.116>
    created_at = <Date 2012-09-27.16:03:07.268>
    labels = ['interpreter-core', 'expert-unicode', 'performance']
    title = 'performance regression in string replace for 3.3'
    updated_at = <Date 2013-04-13.19:47:21.115>
    user = 'https://bugs.python.org/BreamoreBoy'

    bugs.python.org fields:

    activity = <Date 2013-04-13.19:47:21.115>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2013-04-13.19:47:21.116>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core', 'Unicode']
    creation = <Date 2012-09-27.16:03:07.268>
    creator = 'BreamoreBoy'
    dependencies = []
    files = ['27521', '27526', '27544', '27545', '27553', '29721']
    hgrepos = []
    issue_num = 16061
    keywords = ['patch', '3.3regression']
    message_count = 22.0
    messages = ['171378', '171407', '171413', '172602', '172628', '172691', '172769', '172780', '172821', '178604', '178606', '178607', '178609', '178612', '178615', '178666', '185864', '185948', '186248', '186249', '186807', '186808']
    nosy_count = 12.0
    nosy_names = ['loewis', 'terry.reedy', 'jcea', 'pitrou', 'vstinner', 'thomaslee', 'benjamin.peterson', 'ezio.melotti', 'BreamoreBoy', 'python-dev', 'serhiy.storchaka', 'kushal.das']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue16061'
    versions = ['Python 3.4']

    Metadata

    Metadata

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions