Skip to content

EuiComboBox: Improve search performance for long lists of options #651

Closed

Description

@cjcenizal

Per a comment by @trevan:

With a lot of fields, this is really slow. I created an index pattern without about 3000 fields and typing the first letter took over a second before it displayed the letter.

We should first ascertain whether this delay is due to render performance or costly search logic.

I'm pretty sure it's due to render performance, in which case we can implement a system which culls the options which aren't visible and recycles elements to avoid costly DOM updates. This is a system which @weltenwort has implemented in another project and we could refer to. We could also look into the system implemented in [react-select](https://github.com/JedWatson/react-select#efficiently-rendering-large-lists-with-windowing] for inspiration.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions