close
Skip to content

optimize dropdown search#3768

Open
AnnMarieW wants to merge 3 commits intoplotly:devfrom
AnnMarieW:improve-dropdown-performance
Open

optimize dropdown search#3768
AnnMarieW wants to merge 3 commits intoplotly:devfrom
AnnMarieW:improve-dropdown-performance

Conversation

@AnnMarieW
Copy link
Copy Markdown
Collaborator

Closes #3616

This PR changes the dropdownSearch.ts so it builds the search index once during option sanitization and reuses it instead of rebuilding the index on every search input update.

I tested the example included in issue 3616 with 80,000 options and search performance is now comparable to Dash 3.4.

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.

[BUG] dcc.Dropdown in dash 4.0.0 is considerably slower than before

1 participant