, , , . , , : , Python. , , , , , Python , () , .
, , -, x f, , .
, , . , , . , , , . ( ), , , .
, . . , - / ( ).
, , , , . , .
In general, however, it is more likely to be micro-optimization, and you are unlikely to encounter any problems if you do this in one or another way. So Id suggests you write clear code first and make sure everything else works well, and if you really run into performance issues later, you can check where the problems are.
source
share