[Bug 1638695] Re: Python 2.7.12 performance regression

2017-08-17 Thread Elvis Pranskevichus
We'll need the package maintainers to chime in on this. Attached is a patch that disables harmful settings. ** Patch added: "0001-Disable-fpectl-and-fPIC-on-Modules-_math.c.patch" https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1638695/+attachment/4934301/+files/0001-Disable-fpectl-a

[Bug 1638695] Re: Python 2.7.12 performance regression

2017-08-16 Thread Elvis Pranskevichus
After much testing I found what is causing the regression in 16.04 and later. There are several distinct causes which are attributed to the choices made in debian/rules and the changes in GCC. Cause #1: the decision to compile `Modules/_math.c` with `-fPIC` *and* link it statically into the pytho