GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Faster bypass re cache when DEBUG is passed · Issue #66700 · python/cpython

Faster bypass re cache when DEBUG is passed #66700

New issue
Copy link
New issue
Copy link
Closed
Closed
Faster bypass re cache when DEBUG is passed#66700
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-regextype-featureA feature request or enhancementA feature request or enhancement

Description

@serhiy-storchaka
serhiy-storchaka
opened on Sep 28, 2014
Issue body actions
BPO 22510
Nosy @pitrou, @ezio-melotti, @serhiy-storchaka
Files
  • re_debug_cache_faster.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 2014-09-29.17:02:10.439>
    created_at = <Date 2014-09-28.13:43:11.638>
    labels = ['expert-regex', 'type-feature', 'library']
    title = 'Faster bypass re cache when DEBUG is passed'
    updated_at = <Date 2014-09-29.17:02:10.438>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2014-09-29.17:02:10.438>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-09-29.17:02:10.439>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)', 'Regular Expressions']
    creation = <Date 2014-09-28.13:43:11.638>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['36749']
    hgrepos = []
    issue_num = 22510
    keywords = ['patch']
    message_count = 3.0
    messages = ['227758', '227801', '227810']
    nosy_count = 5.0
    nosy_names = ['pitrou', 'ezio.melotti', 'mrabarnett', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue22510'
    versions = ['Python 3.5']

    Activity

    1. serhiy-storchaka commented on Sep 28, 2014

      @serhiy-storchaka
      serhiy-storchaka
      on Sep 28, 2014
      MemberAuthor
      More actions

      Here is a patch which gets rid of small performance regression introduced by bpo-20426 patch. No need to check flags before cache lookup because patterns with the DEBUG flag are newer cached.

      $ ./python -m timeit -s "import re" -- "re.match('', '')"

      Before patch: 9.08 usec per loop
      After patch: 8 usec per loop

    2. serhiy-storchaka
      added
      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
      topic-regex
      type-featureA feature request or enhancementA feature request or enhancement
      on Sep 28, 2014
    3. python-dev commented on Sep 29, 2014

      @python-dev
      python-devmannequin
      on Sep 29, 2014
      Mannequin
      More actions

      New changeset 565096a32ce4 by Serhiy Storchaka in branch 'default':
      Issue bpo-22510: Get rid of little overhead of testing re.DEBUG flag.
      https://hg.python.org/cpython/rev/565096a32ce4

    4. serhiy-storchaka commented on Sep 29, 2014

      @serhiy-storchaka
      serhiy-storchaka
      on Sep 29, 2014
      MemberAuthor
      More actions

      Thank you Antoine for your review.

    5. serhiy-storchaka
      closed this as completedon Sep 29, 2014
    6. ezio-melotti
      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

      stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-regextype-featureA feature request or enhancementA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions

        You are visitor 01402503 — GeezerVison does not store the pages you look up.
        Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.