Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 309 Bytes

File metadata and controls

9 lines (6 loc) · 309 Bytes

Cache Function Execution

Demonstrates the dramatic performance difference between cached and uncached recursive Fibonacci computation using functools.cache. The cached version runs orders of magnitude faster by memoizing previously computed results.

Usage

python cache_func_execution.py