filmov
tv
How to speed up python function in a minute !

Показать описание
#shorts
Code if u need:
If u have expensive function that takes time for invoke and always return same result for same arguments for example factorial calculation function wrap it in @cache decorator from functools library ;) it will speedup your code multiple times!
:)
Code if u need:
If u have expensive function that takes time for invoke and always return same result for same arguments for example factorial calculation function wrap it in @cache decorator from functools library ;) it will speedup your code multiple times!
:)