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

fix(material/table): improve filter predicate efficiency #30172

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

andrewseguin
Copy link
Contributor

@andrewseguin andrewseguin commented Dec 11, 2024

Simplifies the table datasource's default filter predicate so that it iterates over each data value directly rather than building a string with delimited characters.

Code was pulled and slightly modified from #21362

New logic performs quite a bit better than before: https://jsbench.me/4bkjp85g44/1

@andrewseguin andrewseguin requested a review from a team as a code owner December 11, 2024 20:06
@andrewseguin andrewseguin requested review from mmalerba and wagnermaciel and removed request for a team December 11, 2024 20:06
@andrewseguin andrewseguin added the target: patch This PR is targeted for the next patch release label Dec 11, 2024
@andrewseguin andrewseguin added the action: merge The PR is ready for merge by the caretaker label Dec 12, 2024
@andrewseguin andrewseguin merged commit c12b73e into angular:main Dec 12, 2024
22 of 24 checks passed
andrewseguin added a commit that referenced this pull request Dec 12, 2024
(cherry picked from commit c12b73e)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: material/table target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants