Re: [Python-Dev] Profile Guided Optimization active by-default

2015-08-25 Thread Brett Cannon
On Tue, 25 Aug 2015 at 09:10 R. David Murray rdmur...@bitdance.com wrote: On Tue, 25 Aug 2015 15:59:23 -, Brett Cannon br...@python.org wrote: On Mon, 24 Aug 2015 at 23:19 Nick Coghlan ncogh...@gmail.com wrote: On 25 August 2015 at 05:52, Gregory P. Smith g...@krypto.org wrote:

Re: [Python-Dev] Profile Guided Optimization active by-default

2015-08-25 Thread Xavier Combelle
Pardon me if I'm not in the right place to ask the following naive question. (say me if it's the case) Does Profile Guided Optimization performance improvements are specific to the chip where the built is done or the performance is better on a larger set of chips?

Re: [Python-Dev] django_v2 benchmark compatibility fix for Python 3.6

2015-08-25 Thread R. David Murray
On Tue, 25 Aug 2015 13:11:37 -, Papa, Florin florin.p...@intel.com wrote: My name is Florin Papa and I work in the Server Languages Optimizations Team at Intel Corporation. I would like to submit a patch that solves compatibility issues of the django_v2 benchmark in the Grand Unified

Re: [Python-Dev] tp_finalize vs tp_del sematics

2015-08-25 Thread Valentine Sinitsyn
Hi Armin, On 25.08.2015 12:51, Armin Rigo wrote: Hi Valentine, On 24 August 2015 at 20:43, Valentine Sinitsyn valentine.sinit...@gmail.com wrote: So you mean that this was to keep things backwards compatible for third-party extensions? I haven't thought about it this way, but this makes

Re: [Python-Dev] tp_finalize vs tp_del sematics

2015-08-25 Thread Valentine Sinitsyn
Hi Armin, On 25.08.2015 13:00, Armin Rigo wrote: Hi Valentine, On 25 August 2015 at 09:56, Valentine Sinitsyn valentine.sinit...@gmail.com wrote: Yes, I think so. There is a *highly obscure* corner case: __del__ will still be called several times if you declare your class with __slots__=().

[Python-Dev] django_v2 benchmark compatibility fix for Python 3.6

2015-08-25 Thread Papa, Florin
Hi All, My name is Florin Papa and I work in the Server Languages Optimizations Team at Intel Corporation. I would like to submit a patch that solves compatibility issues of the django_v2 benchmark in the Grand Unified Python Benchmark. The django_v2 benchmark uses inspect.getargspec(), which

Re: [Python-Dev] django_v2 benchmark compatibility fix for Python 3.6

2015-08-25 Thread Terry Reedy
On 8/25/2015 10:51 AM, R. David Murray wrote: On Tue, 25 Aug 2015 13:11:37 -, Papa, Florin florin.p...@intel.com wrote: My name is Florin Papa and I work in the Server Languages Optimizations Team at Intel Corporation. I would like to submit a patch that solves compatibility issues of

Re: [Python-Dev] django_v2 benchmark compatibility fix for Python 3.6

2015-08-25 Thread R. David Murray
On Tue, 25 Aug 2015 11:18:54 -0400, Terry Reedy tjre...@udel.edu wrote: On 8/25/2015 10:51 AM, R. David Murray wrote: On Tue, 25 Aug 2015 13:11:37 -, Papa, Florin florin.p...@intel.com wrote: My name is Florin Papa and I work in the Server Languages Optimizations Team at Intel

Re: [Python-Dev] django_v2 benchmark compatibility fix for Python 3.6

2015-08-25 Thread Brett Cannon
On Tue, 25 Aug 2015 at 08:31 R. David Murray rdmur...@bitdance.com wrote: On Tue, 25 Aug 2015 11:18:54 -0400, Terry Reedy tjre...@udel.edu wrote: On 8/25/2015 10:51 AM, R. David Murray wrote: On Tue, 25 Aug 2015 13:11:37 -, Papa, Florin florin.p...@intel.com wrote: My name is

Re: [Python-Dev] Profile Guided Optimization active by-default

2015-08-25 Thread Gregory P. Smith
PGO is unrelated to the particular CPU the profiling is done on. (It is conceivable that it'd make a small difference but I've never observed that in practice) On Tue, Aug 25, 2015, 9:28 AM Xavier Combelle xavier.combe...@gmail.com wrote: Pardon me if I'm not in the right place to ask the

Re: [Python-Dev] Profile Guided Optimization active by-default

2015-08-25 Thread Brett Cannon
On Mon, 24 Aug 2015 at 23:19 Nick Coghlan ncogh...@gmail.com wrote: On 25 August 2015 at 05:52, Gregory P. Smith g...@krypto.org wrote: What we tested and decided to use on our own builds after benchmarking at work was to build with: make profile-opt PROFILE_TASK=-m test.regrtest -w

Re: [Python-Dev] Profile Guided Optimization active by-default

2015-08-25 Thread R. David Murray
On Tue, 25 Aug 2015 15:59:23 -, Brett Cannon br...@python.org wrote: On Mon, 24 Aug 2015 at 23:19 Nick Coghlan ncogh...@gmail.com wrote: On 25 August 2015 at 05:52, Gregory P. Smith g...@krypto.org wrote: What we tested and decided to use on our own builds after benchmarking at work

Re: [Python-Dev] Profile Guided Optimization active by-default

2015-08-25 Thread Gregory P. Smith
On Mon, Aug 24, 2015, 11:19 PM Nick Coghlan ncogh...@gmail.com wrote: On 25 August 2015 at 05:52, Gregory P. Smith g...@krypto.org wrote: What we tested and decided to use on our own builds after benchmarking at work was to build with: make profile-opt PROFILE_TASK=-m test.regrtest -w

Re: [Python-Dev] Profile Guided Optimization active by-default

2015-08-25 Thread Patrascu, Alecsandru
Indeed, as Gregory well mentioned, PGO is unrelated to a particular CPU on which we do profiling. From: Python-Dev [mailto:python-dev-bounces+alecsandru.patrascu=intel@python.org] On Behalf Of Gregory P. Smith Sent: Tuesday, August 25, 2015 7:44 PM To: Xavier Combelle;

Re: [Python-Dev] Building Extensions for Python 3.5 on Windows

2015-08-25 Thread Terry Reedy
On 8/25/2015 2:17 PM, Steve Dower wrote: I've written up a long technical blog post about the compiler and CRT changes in Python 3.5, which will be of interest to those who build and distribute native extensions for Windows. http://stevedower.id.au/blog/building-for-python-3-5/ Hopefully it

Re: [Python-Dev] tp_finalize vs tp_del sematics

2015-08-25 Thread Armin Rigo
Hi Valentine, On 24 August 2015 at 20:43, Valentine Sinitsyn valentine.sinit...@gmail.com wrote: So you mean that this was to keep things backwards compatible for third-party extensions? I haven't thought about it this way, but this makes sense. However, the behavior of Python code using

Re: [Python-Dev] Profile Guided Optimization active by-default

2015-08-25 Thread Nick Coghlan
On 25 August 2015 at 05:52, Gregory P. Smith g...@krypto.org wrote: What we tested and decided to use on our own builds after benchmarking at work was to build with: make profile-opt PROFILE_TASK=-m test.regrtest -w -uall,-audio -x test_gdb test_multiprocessing In general if a test is

Re: [Python-Dev] tp_finalize vs tp_del sematics

2015-08-25 Thread Armin Rigo
Hi Valentine, On 25 August 2015 at 09:56, Valentine Sinitsyn valentine.sinit...@gmail.com wrote: Yes, I think so. There is a *highly obscure* corner case: __del__ will still be called several times if you declare your class with __slots__=(). Even on post-PEP-0442 Python 3.4+? Could you

[Python-Dev] Building Extensions for Python 3.5 on Windows

2015-08-25 Thread Steve Dower
I've written up a long technical blog post about the compiler and CRT changes in Python 3.5, which will be of interest to those who build and distribute native extensions for Windows. http://stevedower.id.au/blog/building-for-python-3-5/ Hopefully it puts some of the changes we've made into a

Re: [Python-Dev] Profile Guided Optimization active by-default

2015-08-25 Thread Skip Montanaro
On Tue, Aug 25, 2015 at 11:17 AM, Brett Cannon br...@python.org wrote: With a `make develop` target we also can make sure not only that --with-pydebug is used but that the installation target is /tmp so that new contributors don't accidentally install a debug build. You need to be careful

[Python-Dev] [RELEASED] Python 3.5.0rc2 is now available

2015-08-25 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm relieved to announce the availability of Python 3.5.0rc2, also known as Python 3.5.0 Release Candidate 2. Python 3.5 has now entered feature freeze. By default new features may no longer be added to Python

Re: [Python-Dev] Profile Guided Optimization active by-default

2015-08-25 Thread Eric Snow
On Aug 24, 2015 3:51 PM, Stewart, David C david.c.stew...@intel.com wrote: (Sorry about the format here - I honestly just subscribed to Python-dev so be gentle ...) :) Date: Sat, 22 Aug 2015 11:25:59 -0600 From: Eric Snow ericsnowcurren...@gmail.com On Aug 22, 2015 9:02 AM, Patrascu,

Re: [Python-Dev] Profile Guided Optimization active by-default

2015-08-25 Thread Maciej Fijalkowski
Interesting. So pypy (with it's profiling JIT) would be in a similar boat, potentially. PGO and what pypy does have pretty much nothing to do with each other. I'm not sure what do you mean by similar boat ___ Python-Dev mailing list