Bureau-du-Forestier-en-chef / MoSiR

Python package for the carbon fate of wood products
3 stars 0 forks source link

Optimiser le calculateur MoSiR #20

Open Landry-G opened 10 months ago

Landry-G commented 10 months ago

Regarder la memoization https://en.wikipedia.org/wiki/Memoization et comment l'implémenter dans python. Fonction déjà existante de cache, vérifier si les outputs sont les mêmes avec la cache homemade https://docs.python.org/3.12/library/functools.html#functools.cache

Faire des tests de comparaison de performance

python -m cProfile --outfile Profile.prof calculatorrun.py -G -I -R -O snakeviz Profile.prof