Re: [Python-Dev] Optimize Python long integers

2008-11-13 Thread Ondrej Certik
On Tue, Nov 11, 2008 at 11:40 PM, Thomas Wouters <[EMAIL PROTECTED]> wrote: > > > On Tue, Nov 11, 2008 at 14:25, Victor Stinner <[EMAIL PROTECTED]> > wrote: >> >> There are some very interesting propositions (with patches!) to optimize >> Python int and long types (especially the long integers). >

Re: [Python-Dev] Optimize Python long integers

2008-11-11 Thread Terry Reedy
Victor Stinner wrote: Le Wednesday 12 November 2008 00:14:40, vous avez écrit : There are some very interesting propositions (with patches!) to optimize Python int and long types (especially the long integers). Just trying to clarify the focus: would you like to see any of these applied to 2.6?

Re: [Python-Dev] Optimize Python long integers

2008-11-11 Thread Steve Holden
Victor Stinner wrote: > Le Wednesday 12 November 2008 00:14:40, vous avez écrit : >>> There are some very interesting propositions (with patches!) to optimize >>> Python int and long types (especially the long integers). >> Just trying to clarify the focus: would you like to see any of these >> app

Re: [Python-Dev] Optimize Python long integers

2008-11-11 Thread Mark Dickinson
On Tue, Nov 11, 2008 at 11:14 PM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Just trying to clarify the focus: would you like to see any of these > applied to 2.6? To me, it's clear that they are out of scope now, as > they don't fix bugs. There are some minor bugs in longobject.c that I think

Re: [Python-Dev] Optimize Python long integers

2008-11-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 11, 2008, at 6:56 PM, Victor Stinner wrote: Le Wednesday 12 November 2008 00:14:40, vous avez écrit : There are some very interesting propositions (with patches!) to optimize Python int and long types (especially the long integers). Just

Re: [Python-Dev] Optimize Python long integers

2008-11-11 Thread Victor Stinner
Le Wednesday 12 November 2008 00:14:40, vous avez écrit : > > There are some very interesting propositions (with patches!) to optimize > > Python int and long types (especially the long integers). > > Just trying to clarify the focus: would you like to see any of these > applied to 2.6? All optimi

Re: [Python-Dev] Optimize Python long integers

2008-11-11 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 11, 2008, at 6:14 PM, Martin v. Löwis wrote: There are some very interesting propositions (with patches!) to optimize Python int and long types (especially the long integers). Just trying to clarify the focus: would you like to see any of

Re: [Python-Dev] Optimize Python long integers

2008-11-11 Thread Martin v. Löwis
> There are some very interesting propositions (with patches!) to optimize > Python int and long types (especially the long integers). Just trying to clarify the focus: would you like to see any of these applied to 2.6? To me, it's clear that they are out of scope now, as they don't fix bugs. Re

Re: [Python-Dev] Optimize Python long integers

2008-11-11 Thread Thomas Wouters
On Tue, Nov 11, 2008 at 14:25, Victor Stinner <[EMAIL PROTECTED]>wrote: > There are some very interesting propositions (with patches!) to optimize > Python int and long types (especially the long integers). Here's another one: http://code.python.org/loggerhead/users/twouters/intopt-- integer inl

Re: [Python-Dev] Optimize Python long integers

2008-11-11 Thread Antoine Pitrou
Victor Stinner haypocalc.com> writes: > > I tried to do benchmark on all these patches using pystone or pybench, but > the > results are inaccurate. Pystone results change with +/- 20% with the same > code on different runs. I tried more loops (pystone 25), but it doesn't > change anythin

[Python-Dev] Optimize Python long integers

2008-11-11 Thread Victor Stinner
Hi, Patches === There are some very interesting propositions (with patches!) to optimize Python int and long types (especially the long integers). haypo: Macros for PyLong: sign, number of digits, fits in an int http://bugs.python.org/issue4294 marketdickins