mui / mui/base-ui

[tooltip] Render performance of Base UI primitives (tooltip specifically)

Open
#3,444 7 comments 1 reaction 0 assignees View on GitHub
component: tooltip discussion performance
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

## Summary

Hello,
I was comparing render performance of Radix vs. Base UI and noticed that Base UI renders the same amount of components 2x slower. Here is the demo page https://radix-base-tooltip-performance.vercel.app/ and the repo https://github.com/misha-erm/radix-base-tooltip-performance.

In my "stress-test" I'm rendering 2k items wrapped in Tooltip. Also I tried the approach with detached triggers and lazy activation.

Wdyt, Is it something that's worth of investigation? Maybe there is a problem with my benchmark? Thanks in advance🙇🏻‍♂️

## Motivation
we at https://fibery.io currently use Radix at the moment but I closely follow base-ui's progress and thinking migrating to it one day. However our UI is pretty dense, so at the same time there might be a lot of tooltip/context-menu wrappers at the screen. We've had performance problems with wrappers already so 2x slowdown can be quite noticeable for us. Wonder if base-ui team want to look into this direction or it's sort of expected performance level

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.