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
- Host: GitHub
- URL: https://github.com/gugod/js-memoize
- Owner: gugod
- Created: 2008-07-08T19:57:16.000Z (over 17 years ago)
- Default Branch: master
- Last Pushed: 2008-07-08T20:20:27.000Z (over 17 years ago)
- Last Synced: 2024-10-18T07:45:20.282Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
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