-
Notifications
You must be signed in to change notification settings - Fork 842
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
[EuiTooltip] Performance issues #3568
Comments
I'd like to try and replicate this outside of discover. I'll see if I can make a quick code sandbox example to verify the issue. FWIW, I think using a title instead of a tooltip is a better UI decision anyway, but lets see where this is getting hung up. |
There's a similiar issue here related to EuiTooltip elastic/kibana#58204, I could now reproduce it:
|
@snide Could you clarify if this is a general recommendation not to use EuiTooltip then anymore? Because this performance issue is really severe for us, and if the solution from design is to use title instead, we'd start removing EuiTooltip in large across our apps. So would be good to have some clarity (and maybe adding it to the EUI documentation) if we no longer recommend using this component, or if the issue can somehow be prioritized on your side? |
@timroes This is certainly not an advocate for not using EuiTooltip. Discover was the first application to uncover such a problem so we should certainly aim to fix it on the EUI side. @snide is already working on triaging it at the EUI side with constructing the Discover implementation. The advice for using |
Regardless of the EuiTooltip vs. I can give it a go and see what gains I can get. |
I'll keep going with this, but an update for now: |
Did some quick testing as well; it appears that the slowdown is caused from the (Greg, please verify that disabling the onMouseOut/hideToolTip resolves for you as well, I'm not 100% sure I set this up right) |
I was able to get good results by using our |
Nice! Good thinking! |
This helps a lot, also. Going to incorporate the idea in the open PR. |
Changes in #3596 result in only single-digit Chrome renderer CPU % increases compared with a stateless, tooltip-less component after excessive mouseover/mouseout activity. |
Depending on the system EuiTooltip caused a performance issue in Kibana Discover. The attached Gifs show a significant higher CPU usage by hovering the Elements containing a EuiTooltip it in Chrome 83, MacOs 10.14.6. While it wasn't that bad on my MacBook Pro (just when moving around the mouse like crazy), it seems to have a significant higher performance impact on Windows based machines (also when not moving around the mouse quickly), also Linux based system reported a much higher impact. Here is the original issue that reported it:
elastic/kibana#67732
Here the PR replacing EuiTooltip:
elastic/kibana#68280
Sidebar elements with EuiTooltip
Sidebar elements with native tooltip with title attribute
The text was updated successfully, but these errors were encountered: