Skip to content

Commit

Permalink
(chore) - Update #1859's changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Aug 17, 2021
1 parent 33f122c commit bdc352f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .changeset/eleven-cobras-flash.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
---

Improve referential equality of deeply queried objects from the normalised cache for queries. Each query operation will now reuse the last known result and only incrementally change references as necessary, scanning over the previous result to identify whether anything has changed.

While this affects our querying performance by about -20%, it should yield noticeable results in UI frameworks, where referential equality is often used to avoid work (e.g. in React with `useMemo` or `React.memo`). Overall, a 20% difference shouldn't be noticeable in day to day use given that we can read fairly typical queries over 10K times a second. ⚡
This should help improve the performance of processing updates in UI frameworks (e.g. in React with `useMemo` or `React.memo`).
See: [#1859](https://github.com/FormidableLabs/urql/pull/1859)

0 comments on commit bdc352f

Please sign in to comment.