Comparison of the CPU- and Memory- performance of a Numpy in-place and out-place functions for the same calculations in Python. This information will help you to understand what style of coding you should always apply if it is possible to achieve an almost 25% performance increase and massive savings on memory.
Numpy:
http://mycoding.uk/a/python_numpy.html
In-place vs out-place function performance:
http://mycoding.uk/a/in-place_and_out...
Video content:
0:00 - Out-place function code
0:38 - In-place function code
1:12 - Code for comparison
2:15 - Real-time observations
3:05 - Graphical results
#numpy #pythoncoding #codeoptimization