-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
perf(ui): workflow editor misc #7645
Conversation
Goes great on FF, pear-shaped on Chrome. Unsure if the changes here are the cause or if the issue was there previously also. Will need to investigate before merging. |
Ok so chrome issue isn't new. Appears to be related to animation of the There's an ancient (over 10 years old) Chrome bug report for this: https://issues.chromium.org/issues/40958492 Dunno if there's a way to fix this, but at least we know it is not related to the reactflow upgrade or any recent changes. |
I dove a bit deeper into this chrome issue. Can't figure out how to work around it - looks like Chrome has some SVG rendering issues generally, not just If workflows perf on Chrome becomes a pain point, we can reduce or remove these heavy CSS/style features:
Unfortunately the changes in this PR don't seem to really fix the issue. I thought I had fixed it - but then the issue returned without me making any other changes! I reverted the non-fix. |
- Optimize component and hook structure for input fields to reduce rerenders of component tree - Remove memoization on some selectors where it serves no purpose (bc the object will have a stable identity until it changes, at which point we need to re-render anyways) - Shift the connection error selector logic around to rely more on the stable identity of pending connection objects
This reverts commit 9d482e5.
…ng canvas filter cancelations The abortController could be null by the time we attempt to abort it
…n single selector
afac770
to
169cf99
Compare
Summary
@reduxjs/toolkit
to latest to take advantage of more efficient bulk query cache updatesRelated Issues / Discussions
Some discussion here: https://discord.com/channels/1020123559063990373/1149506274971631688/1339814928390950965
QA Instructions
Should be faster and not more broken. Check node connection logic.
Merge Plan
n/a
Checklist
What's New
copy (if doing a release after this PR)