An open API service indexing awesome lists of open source software.

https://github.com/gugod/js-memoize

Make functions faster by trading space for time
https://github.com/gugod/js-memoize

Last synced: 9 months ago
JSON representation

Make functions faster by trading space for time

Awesome Lists containing this project

README

          

Memoize is a way to cache function's return value according to its arguments.
This distribution tries to inherit the sprit of Memoriz.pm from Perl, to make
such common routine easy to use.

Memoize speeds up your program in trad of memory space. However, the memory
consumption of a client-side javascript implementation is difficult to know,
so there's no benchmark for this distribution for now. But the saving of
numbers of calling the origial function could be calculated easily. Read tests
under t/ directory for such information.

Cheers,
Kang-min Liu