Dec-24-2019, 08:51 AM
(This post was last modified: Dec-24-2019, 09:01 AM by AlekseyPython.)
Kubuntu 19.10 / Gentoo
I wrote a Python- program, that uses a small computational core, written with a Cython. Having tested on Kubuntu and Gentoo, I found that pure Python code (without a computational core) runs faster on a Gentoo (~+33%), but the Cython computational core runs about 1.5 times faster on a Kubuntu. As a result, the entire program runs faster on a Kubuntu.
I tried to transfer various combinations of options in a pyx- files:
How to speed up work of my program on a Gentoo?
I wrote a Python- program, that uses a small computational core, written with a Cython. Having tested on Kubuntu and Gentoo, I found that pure Python code (without a computational core) runs faster on a Gentoo (~+33%), but the Cython computational core runs about 1.5 times faster on a Kubuntu. As a result, the entire program runs faster on a Kubuntu.
I tried to transfer various combinations of options in a pyx- files:
# distutils: extra_compile_args = ["- O2", "-march = haswell", "-ftree-vectorize"], but this does not improve the speed of the Cython- code on a Gentoo.
How to speed up work of my program on a Gentoo?