>
> 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
>

On pure integers like this::

divisors(10000000)

times on my test machine are 1.12s for cpython, 0.091 for pypy (that's
12x speedup).

on divisors(Integer(10000000)) speedups are less impressive (5s for
CPython, 3s for PyPy).

Which one did you try on Cython?

Cheers,
fijal

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to