-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Medium sized schema becomes uncomfortably laggy to type in inputs. #3715
Comments
I have a similar experience with large schemes, especially when using the
Setting When I use |
Unfortunately @loodsite , the schema I've presented still lags considerably for me even using the rjsf/core Form component. |
@adjenks Did you solve it? I'm also having performance issues |
@xyy7260, |
I'm experiencing these issues, too. We're currently considering dropping the use of the lib because of this. It would be awesome if this deep-down merges could be prevented. |
The same here. I have also noticed that on each keystroke the whole schema gets evaluated/compiled. I would expect this to be the case only with subschemas that depend on the particular field that has been edited. I have tried with:
No change. Help/advice from the maintainers is much appreciated. |
Same exact issue here. Even with validation turned off, typing in a keystroke to any input in the form with a complex JSON schema results in a 2-4 second delay before the character is rendered in the input. It would be nice if there was a way to only compute the json form fields on the first render, and then the json schema would only be evaluated on submit if live validation is turned off. |
Are there any workarounds for this? We have a large schema that was performant in v4, but after upgrading to v5 it's VERY laggy |
I think it was a maintainer who added the |
Prerequisites
What theme are you using?
core
Version
5.x
Current Behavior
It's super slow with somewhat large schema with some conditional sections. Typing is extremely laggy.
It appears to run some deep schema merge functions after every keystroke, can I prevent this?
Expected Behavior
Negligible lag.
Steps To Reproduce
Use the following schema to build a form:
Environment
Anything else?
The call stack you see in the image occurs on each keystroke and brings my cpu up to 90% each time, there is an average jank/lag of 200ms which makes typing very uncomfortable.
The lag is similar when you paste the schema into the playground, but the playground is slightly more responsive ~150ms instead of 200.
Every yellow bump on the graph is a keystroke and is 90% of my CPU for a brief moment.
The schema is not done yet and will be bigger but I'm afraid it will become completely unusable.
The text was updated successfully, but these errors were encountered: