ac812 / mcb-python

Master repository for MCB
https://ac812.github.io/mcb-python/
1 stars 0 forks source link

add benchmark numpy vs standard list in numpy.md #2

Open ac812 opened 2 years ago

ac812 commented 11 months ago

more notes related to this from Anton:

ac812 commented 11 months ago

2) Some basics on good coding practice in algorithms.

Again, keeping the code as simple as possible, avoiding recomputing values multiple times and avoiding using more memory than required. Learning how to use timeit to explore which parts of your code are slow.

Something like here: https://www.geeksforgeeks.org/optimization-tips-python-code/