question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MultiSelect performance with large lists

See original GitHub issue

The MultiSelect component doesn’t handle large lists well. The performance degrades to the point where it’s unusable.

Rendering the same list with ComboBox doesn’t affect the performance as much.

Maybe we can have built-in “windowing” using react-window for example?

Detailed description

Is this issue related to a specific component?

MultiSelect & MultiSelect.Filterable

What browser are you working in?

Chrome latest

What version of the Carbon Design System are you using?

"carbon-components": "9.18.0", 
"carbon-components-react": "6.32.4",
"carbon-icons": "7.0.7",

Steps to reproduce the issue

https://codesandbox.io/s/xrjy36l1pz

Additional information

You can also activate the FPS Meter where you can see the frame rates drop significantly once the dropdown is clicked or use the Performance Monitor to see the CPU Usage. On my computer, once I click on the dropdown, the usage jumps to 100%.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
vpiconecommented, Feb 6, 2020

Another minimal replication of this issue using static data: https://codesandbox.io/s/frosty-shape-gzdku

A cloud team reached out with 4000 items in their list. At that amount, the component becomes unusable. The UX is improved by using Multiselect.Filterable (which is a wild and hard to find API) but the performance issues are still very real.

1reaction
asudohcommented, May 9, 2019

@dakahn I cannot rattle off one, but if you go to Performance tab in Chrome DevTools, click Record button, run the user action with the problem, and click Stop button button, you’ll get insightful info wrt what code ran taking long time. You can right-click on the chart to save it, so great if you can share the result here. I can work with you on the analysis.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performance issue in Mat Multi Select with large dataset
I am trying to build an application in which I have taken a Mat Select with around 4000 items inside it I am...
Read more >
Multiselect large data set in Kendo UI for Angular - Telerik
Hi,. I have implemented a Multiselect control with Filtering. It contains more then 10k items. My initial load is only 50 items as...
Read more >
Dropdown performance poor with large lists - Radzen forum
Performance generally is a little slow but in particular, the dropdown control is very slow when it's populated from large lists.
Read more >
Improve the performance of dropdown containing large data ...
The number of items that are rendered for the first time is the subset of a large list. As the user scrolls down...
Read more >
FIX: Performance decreases after you move a report that ...
The report contains a large multi-select drop-down parameter list. You move the report to a SQL Server 2008 R2 Reporting Services server. You...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found