Skip to content

Instantly share code, notes, and snippets.

View MischaPanch's full-sized avatar

Michael Panchenko MischaPanch

  • appliedAI
  • Munich
View GitHub Profile
@Susensio
Susensio / numpy_lru_cache.md
Last active October 26, 2023 16:10
Make function of numpy array cacheable

How to cache slow functions with numpy.array as function parameter on Python

TL;DR

from numpy_lru_cache_decorator import np_cache

@np_cache()
def function(array):
 ...