On Mon, Dec 7, 2020 at 11:36 AM Tito SanĂ² <ts...@tiscali.it> wrote: > Regarding the solution of linear algebraic equations I noticed a big > difference in the computation > > time in Python compared to the old fortran language. > > I have compared both the linelg and lapack.dgesv-lapack.zgesv modules with > the fortan: dgelg and f04adf. > > The difference in computation time is enormous: > > for example for 430 degrees of freedom it is about 24 min in Python versus > about 1 sec in fortran. > > Is it possible to get better performance in Python? >
Can you make your test code available for examination? If you are using CPython, are you also using numpy? Or numba? If you are using pure Python, have you tried Pypy3? HTH. -- https://mail.python.org/mailman/listinfo/python-list