Skip to content

feat: add maxOptionsToDisplay option to improve autocomplete performance on long lists#636

Open
pepper-lees wants to merge 1 commit intohperrin:masterfrom
pepper-lees:autocomplete-maxoptions
Open

feat: add maxOptionsToDisplay option to improve autocomplete performance on long lists#636
pepper-lees wants to merge 1 commit intohperrin:masterfrom
pepper-lees:autocomplete-maxoptions

Conversation

@pepper-lees
Copy link
Copy Markdown
Contributor

When using autocomplete with lists > 50ish in length, the creation of Svelte/DOM components in the list starts to become a performance bottleneck. It starts to become slow enough for an annoying user experience past 100. Since SMUI doesn't have any sort of virtual list component that I know of, simply limiting the number of rendered results is what I believe is a simple yet effective solution to the problem. In cases where you have a really long list but MUST render them all, then they can just keep the default value and let all the list items render.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant