У меня есть функция
Код: Выделить всё
def getHtmlOfUrl(url):
... # expensive computation
Код: Выделить всё
def getHtmlMemoized(url) = memoizeToFile(getHtmlOfUrl, "file.dat")
Подробнее здесь: https://stackoverflow.com/questions/164 ... emoization
Код: Выделить всё
def getHtmlOfUrl(url):
... # expensive computation
Код: Выделить всё
def getHtmlMemoized(url) = memoizeToFile(getHtmlOfUrl, "file.dat")