Re: [sympy] Running sympy on top of pypy

2010-03-08 Thread Ondrej Certik
On Mon, Mar 8, 2010 at 5:30 PM, Maciej Fijalkowski wrote: > On Mon, Mar 8, 2010 at 5:56 PM, Ondrej Certik wrote: >> On Mon, Mar 8, 2010 at 4:46 PM, Maciej Fijalkowski wrote: >>> On Mon, Mar 8, 2010 at 5:37 PM, Ondrej Certik wrote: On Mon, Mar 8, 2010 at 4:32 PM, Maciej Fijalkowski w

Re: [sympy] Running sympy on top of pypy

2010-03-08 Thread Maciej Fijalkowski
On Mon, Mar 8, 2010 at 5:56 PM, Ondrej Certik wrote: > On Mon, Mar 8, 2010 at 4:46 PM, Maciej Fijalkowski wrote: >> On Mon, Mar 8, 2010 at 5:37 PM, Ondrej Certik wrote: >>> On Mon, Mar 8, 2010 at 4:32 PM, Maciej Fijalkowski wrote: > > Try divisors() from sympy/ntheory/factor_.py. I trie

Re: [sympy] Running sympy on top of pypy

2010-03-08 Thread Aaron S. Meurer
Chris has a divisors function in his 1766 branch that he claims is faster than our current one. Aaron Meurer Sent from my iPod touch. On Mar 8, 2010, at 5:56 PM, Ondrej Certik wrote: On Mon, Mar 8, 2010 at 4:46 PM, Maciej Fijalkowski wrote: On Mon, Mar 8, 2010 at 5:37 PM, Ondrej Certik

Re: [sympy] Running sympy on top of pypy

2010-03-08 Thread Ondrej Certik
On Mon, Mar 8, 2010 at 4:46 PM, Maciej Fijalkowski wrote: > On Mon, Mar 8, 2010 at 5:37 PM, Ondrej Certik wrote: >> On Mon, Mar 8, 2010 at 4:32 PM, Maciej Fijalkowski wrote: Try divisors() from sympy/ntheory/factor_.py. I tried that with Cython (pure Python mode, so that you have

Re: [sympy] Running sympy on top of pypy

2010-03-08 Thread Maciej Fijalkowski
On Mon, Mar 8, 2010 at 5:37 PM, Ondrej Certik wrote: > On Mon, Mar 8, 2010 at 4:32 PM, Maciej Fijalkowski wrote: >>> >>> Try divisors() from sympy/ntheory/factor_.py. I tried that with Cython >>> (pure Python mode, so that you have the same source code, that works >>> both in Python and in Cython

Re: [sympy] Running sympy on top of pypy

2010-03-08 Thread Ondrej Certik
On Mon, Mar 8, 2010 at 4:32 PM, Maciej Fijalkowski wrote: >> >> Try divisors() from sympy/ntheory/factor_.py. I tried that with Cython >> (pure Python mode, so that you have the same source code, that works >> both in Python and in Cython) and I forgot which speedup I got, but at >> least 10x, may

Re: [sympy] Running sympy on top of pypy

2010-03-08 Thread Maciej Fijalkowski
> > Try divisors() from sympy/ntheory/factor_.py. I tried that with Cython > (pure Python mode, so that you have the same source code, that works > both in Python and in Cython) and I forgot which speedup I got, but at > least 10x, maybe up to 25x. Should be in the archives of this list. > > Ondrej

Re: [sympy] Running sympy on top of pypy

2010-03-08 Thread Ondrej Certik
On Mon, Mar 8, 2010 at 3:40 PM, Maciej Fijalkowski wrote: > On Mon, Mar 8, 2010 at 1:55 PM, Ondrej Certik wrote: >> On Mon, Mar 8, 2010 at 11:53 AM, Maciej Fijalkowski wrote: >>> Hello. >>> >>> Half a year ago, I was asking about sympy benchmarks. So here is some >>> feedback on what I got using

Re: [sympy] Running sympy on top of pypy

2010-03-08 Thread Maciej Fijalkowski
On Mon, Mar 8, 2010 at 1:55 PM, Ondrej Certik wrote: > On Mon, Mar 8, 2010 at 11:53 AM, Maciej Fijalkowski wrote: >> Hello. >> >> Half a year ago, I was asking about sympy benchmarks. So here is some >> feedback on what I got using the JIT. Running the very simple >> benchmark, like this: >> >> i

Re: [sympy] Running sympy on top of pypy

2010-03-08 Thread Ondrej Certik
On Mon, Mar 8, 2010 at 11:53 AM, Maciej Fijalkowski wrote: > Hello. > > Half a year ago, I was asking about sympy benchmarks. So here is some > feedback on what I got using the JIT. Running the very simple > benchmark, like this: > > import sympy > import time > x, y = sympy.symbols('x, y') > > fo

[sympy] Running sympy on top of pypy

2010-03-08 Thread Maciej Fijalkowski
Hello. Half a year ago, I was asking about sympy benchmarks. So here is some feedback on what I got using the JIT. Running the very simple benchmark, like this: import sympy import time x, y = sympy.symbols('x, y') for i in range(10): t0 = time.time() sympy.factor(x**20 - y**20) prin