[Discover] Replace EuiTooltip by native title for better performance#68280
Conversation
…-04-improve-sidebar-performance
…-04-improve-sidebar-performance
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
timroes
left a comment
There was a problem hiding this comment.
Tested in Firefox and Chrome on Linux. I could reproduce the very high CPU load beforehand (spiked to 100% when hovering over the field list), and with this PR it got significantly better. Code LGTM.
|
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
|
Side note: Should we create an issue in the EUI repo so this performance bottlenecked is adressed somehow? Or are tooltips just not meant to be used like this? |
|
@flash1293 Matthias created this already: elastic/eui#3568 |
|
Missed that, sorry @kertal |
snide
left a comment
There was a problem hiding this comment.
Tested in browser. LGTM. Thanks for the fix. We'll check on the underlying issue in EUI.
…lastic#68280) # Conflicts: # src/plugins/discover/public/application/components/sidebar/discover_field.tsx
…lastic#68280) # Conflicts: # src/plugins/discover/public/application/components/sidebar/discover_field.tsx # src/plugins/discover/public/application/components/sidebar/discover_sidebar.scss
Summary
Replace Discover Sidebar Fieldname EuiTooltip by a simple native html title attribute for better performance and snappier interface
Old:
Using the
EuiTooltipcaused delays in the interface, causing a big workload on systems when fields were hovered rapidly (you can check this in #67732). Also CSS transitions in this case were to slow.New:

Using native title attribute is not as pretty as the tooltip, but snappy and no workload issues. CSS transitions were also set to none.
Fixes #67732
Checklist
Delete any items that are not applicable to this PR.