Closed Dapid closed 4 months ago
I can reproduce the issue. Investigating...
Can you confirm that passing -O2
to pythran fixes the issue? It looks like the python-config --cflags
no longer includes any optimization flag o_O
https://github.com/serge-sans-paille/pythran/pull/2222 may do the trick. @Dapid I'll wait for your confirmation to merge.
It does work, now I have a 4.5x over pure Python, and a 6.5x on the real case.
Thanks!
Consider this code to evaluate polynomials (and make pretty fractals):
with
extern.py
:Running in pure Python mode, I get over 7 it/s, but with Pythran I get over 4 s/it. This is with both release and master, Python 3.11, on Fedora 40 (GCC 14.1.1).
I don't know what is going on, but this should be the kind of problems Pythran shines at.
Restricting ourselves to reals we get an even larger slow down, from 17 it/s in pure Python, down to 3.8 s/it with Pythran:
and
#pythran export newton_step(float64[:, :], float64[:], float64[:])