Skip to content

Instantly share code, notes, and snippets.

View joerivstrien's full-sized avatar

Joeri van Strien joerivstrien

  • CMBI
  • Nijmegen
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):
 ...