In 2023, I wrote an article about speeding up Python calculations with functools.cache. The execution time at the time went from 8.392 seconds to 0.188 milliseconds. That is a difference of about ...
recursion-ai-debug/ ├── buggy/ │ ├── bug_a_no_base_case.py # countdown() — missing base case │ ├── bug_b_unreachable_base.py # sum_digits() — float division never hits 0 │ └── bug_c_wrong_direction.py ...