Message312474
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(...)? |
|
| Date |
User |
Action |
Args |
| 2018-02-21 06:51:11 | terry.reedy | set | recipients:
+ terry.reedy, cheryl.sabella |
| 2018-02-21 06:51:11 | terry.reedy | set | messageid: <[email protected]> |
| 2018-02-21 06:51:11 | terry.reedy | link | issue32880 messages |
| 2018-02-21 06:51:11 | terry.reedy | create | |
|