-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is fast-memoize still the best memoization lib? Is it being maintained? #86
Comments
The benchmarking implemented here only tests for the memoized function to be called with one and the same argument (or only a handful of arguments) over and over again. If you test with more different arguments the results for fast-memoize are quite different. Check out our benchmarks here: https://github.com/Animus-Blue/sonic-memoize |
Sonic-memoize does look fast based on those benchmarks. I ended up going with memoizee based on a combination of benchmarks and how much usage it had. I wanted to just stick to lodash, but the syntax for multi argument memoization is gross. |
Did few benchmark and fast-memoize was slower than lodash memoize on most of the functions benchmarked on my code base, your use case might be different tho, better to benchmark and then decide. Worth mentioning sonic-memoize was the fastest for my usecase. func 1 func 2 |
Basically the title! Curious if there is some new state-of-the-art for fast memoization, or if this library is still best in class.
The text was updated successfully, but these errors were encountered: