-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
maybeDeepFreeze takes ~200ms on big arrays #7474
Comments
@Banou26 Very much appreciate your performance stress-testing! I'm cautiously optimistic that this PR could have a big impact on the amount of freezing that happens in development. Specifically, since result objects are canonicalized before they're frozen in the new system, they won't be re-frozen if the canonical object ends up having the same structure as it had before (even though it might not be |
Also note: if you aren't using a bundler that replaces |
It doesn't sound like there is an outstanding issue here, so closing. Thanks! |
Intended outcome:
Apollo not taking ~200ms deepFreezing big arrays when I'm updating a reactive variable.
Or maybe make an option for us to disable deepFreeze in development as it'd also fix #6813.
Actual outcome:
Apollo deepFreeze the array everytime i make a change to the reactive variable and it takes around 200ms.
How to reproduce the issue:
Set a big array (more than 1k items) of objects in a reactive array & make a query that fetches it.
Versions
"@apollo/client": "^3.2.9"
The text was updated successfully, but these errors were encountered: