-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Bottleneck on large objects #519
Comments
Thanks for reporting! |
Looks like Line 156 in 7c85c14
And, it probably happens with valtio only (not with react-tracked) because valtio snapshot is always frozen. |
that was fast ⚡ Great work |
This issue is back again in v1.10.1 by #656. |
Hello @dai-shi I made an experiment of having 5000 form fields with different state managers and found out that Valtio isn't performing well:
Jotai
https://codesandbox.io/s/form-test-jotai-05chcf?file=/src/App.tsx
Zustand
https://codesandbox.io/s/form-test-zustand-u53m0s
Valtio(increase SIZE to 5000)
https://codesandbox.io/s/form-test-valtio-b61ldg
The text was updated successfully, but these errors were encountered: