FormidableLabs/react-fast-compare
fastest deep equal comparison for React observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3067
- days_rel: n/a
- days_push: 896
- n_releases_24m: 0
Adoption not part of the score
1666 stars · 54 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A tiny, fast deep-equality comparison library for JavaScript, forked from fast-deep-equal with extra handling for React-specific circular references like elements. It is designed primarily for use with React.memo and shouldComponentUpdate to prevent unnecessary re-renders.
Use cases
- deeply compare props in React.memo to avoid re-renders
- implement shouldComponentUpdate with deep equality checks
- compare nested objects and arrays for equality in JavaScript
- check equality of Date and RegExp objects
- compare values containing React elements without circular reference errors
When to choose
- you need deep equality checks in React.memo or shouldComponentUpdate after profiling confirms re-renders are a bottleneck
- you need a very small (<660 bytes) and fast general-purpose deep-equal function
- your data includes React elements or other circular references
When to avoid
- shallow comparison via default React.memo or PureComponent would suffice
- your objects contain circular references outside React elements
- you need equality checks for Maps, Sets, or other special structures not mentioned as supported
Facets
library · maturity maintenance
serialization frontend web-development developer-tools browser cross-platform deep-equality react performance-optimization react-memo should-component-update nodejs
2 sources
- readme: https://github.com/FormidableLabs/react-fast-compare · fetched 2026-08-28 · 6c9a8be42307
- registry_npm: https://registry.npmjs.org/react-fast-compare · fetched 2026-08-29 · ef3eeb1403b8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| FormidableLabs/react-fast-compare | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="FormidableLabs/react-fast-compare")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem