Roman Suzi
Jun 4, 2023

--

This is very nice to know! However, if one needs to do a lot of computations, there are solutions like Cython. And for homogeneous computations over large arrays Numpy can help a lot.

Near to the topic (not checked by profiler with newer Python though), turning global variable into local one was once considered an optimization.

--

--

Responses (1)