-
Notifications
You must be signed in to change notification settings - Fork 8.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
[Security Solution][Detection Engione] memoize SelectRuleType component on rule edit/create page #161012
[Security Solution][Detection Engione] memoize SelectRuleType component on rule edit/create page #161012
Conversation
This reverts commit 245ba57.
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
x-pack/plugins/security_solution/public/detections/components/rules/select_rule_type/index.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for swooping in and taking care of this perf issue @vitaliidm! LGTM! 👍
Sorry for the delay in approval here, been a little busy over in Assistant Land
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @vitaliidm |
Summary
Small improvement, part of #159380
Memoizing SelectRuleType saves ~16-20ms, around 25% faster for form re-render
Before
After