Message274029
Having disabled multiprocessing, I ran new, more extensive profiles.
The biggest problem is in re.sub(), which in our codebase evidently uses
3 times as much processing time in Python 2.7.12 as it does in Python 2.7.6.
I'm attaching the profile reports for both runs.
Here's a possibly-relevant question: Are regular expressions now being
unnecessarily recompiled by re.sub()?
We never call the sub() method of a compiled regular expression; we
always call sub() as "re.sub()" and pass the compiled regular expression
as the first argument. Years ago when our code was first developed,
re.sub() did not always work correctly when invoked as a method of a
compiled regular expression object. I don't know if that's still a
problem, but the problem persisted for years, and so we have a
convention of always invoking sub() at the module level.
Steve Newcomb |
|
Date |
User |
Action |
Args |
2016-08-31 15:15:18 | steve.newcomb | set | recipients:
+ steve.newcomb, rhettinger, serhiy.storchaka |
2016-08-31 15:15:16 | steve.newcomb | link | issue27898 messages |
2016-08-31 15:15:16 | steve.newcomb | create | |
|