[pypy-dev] _pypy_wait.py fixes

2011-05-17 Thread Da_Blitz
Hi when calling wait3 or wait4 in the os module a ctypes error about return types is printed. a quick patch is included bellow to silence the message --- Da_Blitz diff -r eaba7adf5188 lib_pypy/_pypy_wait.py --- a/lib_pypy/_pypy_wait.pyThu Apr 28 11:46:10 2011 +0200 +++ b/lib_pypy/_pypy_wai

Re: [pypy-dev] Performance challenge of mutating class variables

2011-05-17 Thread Antonio Cuni
On 17/05/11 14:11, Maciej Fijalkowski wrote: > Which reminds me that we should *really* start running python 2.7 as a > baseline python for this, it should be "enough" to upgrade ubuntu on tannit, which comes with python2.7. Unless we decide that we want to stay with the LTS release. ciao, Anto

Re: [pypy-dev] Performance challenge of mutating class variables

2011-05-17 Thread Maciej Fijalkowski
On Tue, May 17, 2011 at 1:57 PM, Armin Rigo wrote: > Hi Maciej, > > On Tue, May 17, 2011 at 1:43 PM, Maciej Fijalkowski wrote: >> Might be CPython 2.6 vs CPython 2.7? There were significant GC changes >> in 2.7, especially when it comes to O(n^2) behavior. > > I must have messed up my measures.  

Re: [pypy-dev] Performance challenge of mutating class variables

2011-05-17 Thread Armin Rigo
Hi Maciej, On Tue, May 17, 2011 at 1:43 PM, Maciej Fijalkowski wrote: > Might be CPython 2.6 vs CPython 2.7? There were significant GC changes > in 2.7, especially when it comes to O(n^2) behavior. I must have messed up my measures. It's true that Python 2.7 is twice as fast as Python 2.6 in th

Re: [pypy-dev] Performance challenge of mutating class variables

2011-05-17 Thread Maciej Fijalkowski
On Tue, May 17, 2011 at 1:24 PM, Armin Rigo wrote: > Hi David, > > On Sun, May 15, 2011 at 5:21 PM, Armin Rigo wrote: >>> Did you try this with PyPy 1.5 or a recent nightly? I thought that the new >>> type __dict__ implementation should have fixed the problem? >> >> Indeed, with a recent PyPy thi

Re: [pypy-dev] Performance challenge of mutating class variables

2011-05-17 Thread Armin Rigo
Hi David, On Sun, May 15, 2011 at 5:21 PM, Armin Rigo wrote: >> Did you try this with PyPy 1.5 or a recent nightly? I thought that the new >> type __dict__ implementation should have fixed the problem? > > Indeed, with a recent PyPy things are much better.  My example > still takes 1.5x time the