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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

2 participants