{"_id":"memoizejs","_rev":"7-dad4ad240b61ee0426752b020d028453","name":"memoizejs","description":"A faster JavaScript memoizer","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"memoizejs","version":"0.1.0","description":"A faster JavaScript memoizer","main":"memoize.js","directories":{"test":"tests"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/addyosmani/memoize.js"},"keywords":["memoize","memoization","cache"],"author":{"name":"Addy Osmani","email":"addyosmani@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/addyosmani/memoize.js/issues"},"homepage":"https://github.com/addyosmani/memoize.js","_id":"memoizejs@0.1.0","dist":{"shasum":"c6ffe616b87e00c955d200c53f1a88e3b7e7f12d","tarball":"https://registry.npmjs.org/memoizejs/-/memoizejs-0.1.0.tgz","integrity":"sha512-0Nv8O14KPvLQCVidkAExVPhHAw1fW4SvnNzedDFuNfSUYPOTSGdL8/2GWicLrZASmBCaC9dxTMVTXFfWbFrTTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBAe3cKxGOiGmvIpU18bsGX//w6hmcd7MXf4eJ11sY/7AiAolXZuKNFz0EOeRsyG3lFTcFRtFcDaT2scd8MsGv/SHA=="}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"addyosmani","email":"addyo@google.com"},"maintainers":[{"name":"addyosmani","email":"addyo@google.com"}]},"0.1.1":{"name":"memoizejs","version":"0.1.1","description":"A faster JavaScript memoizer","main":"memoize.js","directories":{"test":"tests"},"repository":{"type":"git","url":"https://github.com/addyosmani/memoize.js"},"keywords":["memoize","memoization","cache"],"author":{"name":"Addy Osmani","email":"addyosmani@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/addyosmani/memoize.js/issues"},"homepage":"https://github.com/addyosmani/memoize.js","_id":"memoizejs@0.1.1","dist":{"shasum":"7e2c6a18c7799cad501ecd2025637843060ad495","tarball":"https://registry.npmjs.org/memoizejs/-/memoizejs-0.1.1.tgz","integrity":"sha512-KXeLtPtfNRS9zKBXNP1N3bKZCQHyxWnQ4eobKpbdDLPswAILGYnvtq+OYWumyr1Gf3cBmIm4sBbhgZYE8/Scag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUtGHWGvLgsy/6UXeRtwznyG6iUAwrte3MtRf2exdCxAiEAzoOarb2fYLlVMnHxxhft08SGhsmp8lFwV8GTnTWgr1s="}]},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"addyosmani","email":"addyo@google.com"},"maintainers":[{"name":"addyosmani","email":"addyo@google.com"}]}},"readme":"## Memoize.js\n\n> A faster JavaScript memoizer\n\nWhilst not new by any means, memoization is a useful optimization technique for caching the results of function calls such that lengthy lookups or expensive recursive computations can be minimized where possible.\n\nThe basic idea is that if you can detect an operation has already been previously completed for a specific set of input values, the stored result can instead be returned instead of repeating the operation again.\n\nSome of the problems memoization can help optimize include: recursive mathematics, algorithmic caching of canvas animation and more generally, any problems which can be expressed as a set of calls to the same function with a combination of argument values that repeat.\n\n### Usage\n\nImagine having a function you want to memoize, like running the Fibbonacci sequence:\n\n```\nvar fib, fiborg;\n\nfiborg = fib = function (x) {\n  if(x < 2) return 1; else return fib(x-1) + fib(x-2);\n}\n```\n\nWe can then memoize it as follows:\n\n```\nfib = memoize(fiborg);\nfib(20);\n```\n\n### License\n\nReleased under an MIT license.","maintainers":[{"name":"addyosmani","email":"addyo@google.com"}],"time":{"modified":"2022-06-19T17:45:26.861Z","created":"2014-02-10T13:14:09.699Z","0.1.0":"2014-02-10T13:14:09.699Z","0.1.1":"2014-08-16T19:50:09.377Z"},"readmeFilename":"README.md","users":{"pasangsherpa":true},"homepage":"https://github.com/addyosmani/memoize.js","keywords":["memoize","memoization","cache"],"repository":{"type":"git","url":"https://github.com/addyosmani/memoize.js"},"author":{"name":"Addy Osmani","email":"addyosmani@gmail.com"},"bugs":{"url":"https://github.com/addyosmani/memoize.js/issues"},"license":"MIT"}