fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

TagPicker: Switch suggestions to use List to fix performance

Open SeanK1191 opened this issue 9 years ago • 6 comments

Package versions: office-ui-fabric-react 6.0.1, react 15.5.4

The issue:

If you have a lot of items going into a TagPicker (Around 9000 in my case), when you navigate the control using keyboard and select a Suggested Item by hitting enter, the page is unresponsive and takes around 10 seconds to finish.

When clicking! on the Suggested Item it is very fast, even with the same data set.

I tried looking into what could be causing this and I am not completely sure but the most time is being taken up during react code, I think when calling closeAll.

If you want to reproduce, you only need to pass a large number (Likely in the thousands) of items into selectedItem and then navigate the control with the keyboard and select an item using enter.

I have attached two profiles I took using the react_perf query on my website and recording performance with the chrome dev tools, you can load these profiles using the dev tools performance tab. Performance Profiles

I am completely unaware of why clicking is fine and the keyboard is not, so any guidance would be appreciated. Sorry if this is a duplicate, couldn't see anything about it.

SeanK1191 avatar Oct 23 '17 14:10 SeanK1191

@dzearing Can you look into this one since this is related to 6.0 branch.

michaelangotti avatar Apr 09 '18 18:04 michaelangotti

This issue has been automatically marked as stale because it has not activity for 30 days. It will be closed if no further activity occurs within 14 days of this comment. Thank you for your contributions to Fabric React! Why am I receiving this notification?

stale[bot] avatar Jun 08 '18 19:06 stale[bot]

picker related. @joschect

dzearing avatar Jun 21 '18 04:06 dzearing

We are on the latest version of office Fabric and still seeing this issue. Is there going to be a solution for this anytime soon?

Alison-Sarah-P-C avatar Jul 03 '18 15:07 Alison-Sarah-P-C

@Alison-Sarah-P-C I can reproduce this behavior. @dzearing We can probably fix this if we change the behavior of the suggestions list to virtually render the subcomponents, but I'm not sure how much work it will be.

joschect avatar Jul 05 '18 23:07 joschect

Because this issue has not had activity for over 150 days, we're automatically closing it for house-keeping purposes.

Still require assistance? Please, create a new issue with up-to date details.

msft-fluent-ui-bot avatar Feb 04 '22 19:02 msft-fluent-ui-bot