4 ms·
If it's useful at all, PyPy 5.7.0 was noticeably slower than CPython 2.7.11 x64 when I was using SymPy. Haven't tried out the new release though.
by wfunction 10y ago
If it's useful at all, PyPy 5.7.0 was noticeably slower than CPython 2.7.11 x64 when I was using SymPy. Haven't tried out the new release though.
- sanxiyn 10y agoDid you try x64 version of PyPy? x86 version is necessarily much slower (both CPython and PyPy) if your program is long-heavy. SymPy is actually part of benchmark used by PyPy and PyPy should be faster if you compare x64 to x64.
- wfunction 10y agoNope, I'm on Windows.
- fijal 10y agoHi I've tried optimizing sympy and it's hard - there is a chance that it uses cython (which will slow things down on pypy) but also the gains were small (up to 2x) and only noticable if you run it for a while (at least few seconds). SymPy is a bit of an example that while python as a language is not necesarilly slow, since you can make a plan for most parts, it breeds culture of unnecessary meta-programming, tons of copies and dict lookups that makes it REALLY HARD to optimize. ORMs go in the same category
- denfromufa 10y agosubset of sympy can run with symengine for speedup
- deleted 10y ago[deleted]