This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients cheryl.sabella, terry.reedy
Date 2018-02-21.06:51:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519195871.84.0.467229070634.issue32880@psf.upfronthosting.co.za>
In-reply-to
Content
Is
        str = str.replace('xxxxxxxx', 'x')
        str = str.replace('xxxx', 'x')
        str = str.replace('xx', 'x')
        str = str.replace('xx', 'x')
really faster than
        _squashex = re.compile('x+').sub  # top of file
        _squashex('x', str)

And are the name bindings faster that regex.func(...)?
History
Date User Action Args
2018-02-21 06:51:11terry.reedysetrecipients: + terry.reedy, cheryl.sabella
2018-02-21 06:51:11terry.reedysetmessageid: <1519195871.84.0.467229070634.issue32880@psf.upfronthosting.co.za>
2018-02-21 06:51:11terry.reedylinkissue32880 messages
2018-02-21 06:51:11terry.reedycreate