Computer Scientist
I go by theroyakash on the internet. I am a computer scientist, with research in high performance algorithms, data structures, distributed systems, and beyond. See my work searching google for theroyakash.
Markdown supported · ⌘↵ to post
Sébastien Portebois
Did you try timing it against the built-in cache functions Python provides?
eg docs.python.org/3/library/functools.html
It’s indeed a good way to introduce how to create custom decorators, but for this caching purpose, I’d believe the built-in implementation will be faster.