moize
memoize-one
moize | memoize-one | |
---|---|---|
2 | 2 | |
872 | 2,912 | |
- | - | |
4.1 | 0.0 | |
about 1 month ago | over 1 year ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
moize
-
What is the best memoization library?
I recently did some testing on the most popular memoization libraries and found moize to be the most fully-featured, actively maintained, and performant.
-
🚀10 Trending projects on GitHub for web developers - 25th February 2022
View on GitHub
memoize-one
-
Improving Render Performance in React
Another option is to memoize (not memorize) the results of the process. Memoization is a form of in-memory caching. We're only going to discuss this in the context of functional components where we can use the useMemo hook provided by React, but you may be able to achieve similar results in a class component using a third-party helper.
-
Techniques to optimize React render performance: part 2
Caching computed values in class components is a bit clunkier, especially if you are trying to avoid the UNSAFE_componentWillReceiveProps() lifecycle function. The React maintainers recommend using the memoize-one library:
What are some alternatives?
next-super-performance - The case of partial hydration (with Next and Preact)
use-deep-compare-effect - 🐋 It's react's useEffect hook, except using deep comparison on the inputs, not reference equality
just - A library of dependency-free JavaScript utilities that do just one thing.
marked - A markdown parser and compiler. Built for speed.
hyperformula - HyperFormula is an open-source headless spreadsheet for business web apps. It comes with over 400 formulas, CRUD operations, undo-redo, clipboard support, and sorting. Built in TypeScript, supported by the Handsontable Team.
DOMPurify - DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
micro-memoize - A tiny, crazy fast memoization library for the 95% use-case
solid - A declarative, efficient, and flexible JavaScript library for building user interfaces. [Moved to: https://github.com/solidui/solid]
react-virtualized - React components for efficiently rendering large lists and tabular data
react-window - React components for efficiently rendering large lists and tabular data