Nov-01-2019, 01:53 PM
(This post was last modified: Nov-01-2019, 01:53 PM by AlekseyPython.)
Python 3.7.1
My program works with big data, where I don't see the point of using dynamic language capabilities (adding class members or methods during program execution). Also I try to create a good application architecture, that has multiple layers. All this makes the callstack very long, and the program runs slowly. In fact, my program is written in C++ style.
Is it possible to optimize my code, by indicating that I will abandon the dynamic capabilities of the Python? I know there is PyPy (which uses embedding of small functions, which reduces stack depth), but it requires refusal libraries written in C, which is unacceptable in the case of machine learning. What other optimization tools are available that allow you to create fast programs with good architecture?
My program works with big data, where I don't see the point of using dynamic language capabilities (adding class members or methods during program execution). Also I try to create a good application architecture, that has multiple layers. All this makes the callstack very long, and the program runs slowly. In fact, my program is written in C++ style.
Is it possible to optimize my code, by indicating that I will abandon the dynamic capabilities of the Python? I know there is PyPy (which uses embedding of small functions, which reduces stack depth), but it requires refusal libraries written in C, which is unacceptable in the case of machine learning. What other optimization tools are available that allow you to create fast programs with good architecture?