Skip to content
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

[icons] Improve icon search performance #44450

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Nov 18, 2024

This is a continuation of #44001. I'm not sure that that change actually had any positive impact. I suspect that it only surfaced a Chrome DevTools bug that it works around.

Instead, what we see now is https://pagespeed.web.dev/analysis/https-mui-com-material-ui-material-icons/cvfn967l26?form_factor=desktop. That INP is horrible.

SCR-20241118-dtts

What I'm doing instead is moving #44025 to the finish line. I used a different search dependency at the same time. It seems smaller, faster, and a bit more accurate.

I was curious to check how other icons libraries handle this:

Preview: https://deploy-preview-44450--material-ui.netlify.app/material-ui/material-icons/

@oliviertassinari oliviertassinari force-pushed the icon-search-performance branch 2 times, most recently from 2c3147d to 38602c3 Compare November 18, 2024 02:27
@mui-bot
Copy link

mui-bot commented Nov 18, 2024

Netlify deploy preview

https://deploy-preview-44450--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against e52845e

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Nov 18, 2024
@zannager zannager requested a review from Janpot November 19, 2024 11:32
@oliviertassinari oliviertassinari marked this pull request as draft November 21, 2024 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: icons Specific to @mui/icons performance PR: out-of-date The pull request has merge conflicts and can't be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants