We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to functools documentation implementing lru_cache on function memorizes the output generated.
functools
lru_cache
This means any recursive searches will not be executed again if the output is cached.
It is very simple to implement. Here's an example below:
def test(input: str) -> str: # code below
from functools import rlu_cache @rlu_cache def test(input: str) -> str: #code below
To implement only requires a decorator.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
According to
functools
documentation implementinglru_cache
on function memorizes the output generated.This means any recursive searches will not be executed again if the output is cached.
It is very simple to implement. Here's an example below:
To implement only requires a decorator.
The text was updated successfully, but these errors were encountered: