DetailsList's GroupSpacer: Refactor to React.SFC & remove styled HOC to improve render performance - #8435
Merged
David Zearing (dzearing) merged 10 commits intoMar 22, 2019
Conversation
Member
Author
|
Jason Gore (@JasonGore) may be interested in this perf as it relates to styled-HOC |
Kevin T. Coughlin (KevinTCoughlin)
requested a review
from Aftab Hassan (aftab-hassan)
March 22, 2019 04:48
Member
Author
|
Puppeteer would be awesome. This is a great candidate for a test suite, especially with CPU throttling. |
Member
Author
Vitalie Braga (Vitalius1)
approved these changes
Mar 22, 2019
Vitalie Braga (Vitalius1)
left a comment
Contributor
There was a problem hiding this comment.
I like the change. The only thing I am worried about is that we lost a simple way to fluentize this part in fluent-theme package through Customizer with the scope name (the width changes in fluent styles), but I think it's worth it as I don't need it for fabric-7 branch.
Member
Author
|
FWIW this customization hook for |
Member
Author
Kevin T. Coughlin (KevinTCoughlin)
deleted the
keco/conditionally-render-groupspacer
branch
March 23, 2019 00:00
Contributor
|
🎉 Handy links: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Pull request checklist
$ npm run changeDescription of changes
We can render
GroupSpacerless and save row rendering time forDetailsList&GroupedList.Test Case
Rendering
DetailsList.Basic.Examplew/10,000rowsBefore Changes:
After Changes:
The only time the profiler reports time-spent in
GroupSpaceris eval'ing the modules:What is a GroupSpacer
This space (made blue for snapshot):
Backwards Compatibility
We lose the ability to theme this empty space, but I feel like the performance benefits are worth it.
I explored conditionally rendering the component to preserve backwards-compatibility in 580bb08.
Focus areas to test
DetailsListnon-grouped should render as expectedDetailsListgrouped should render with indentation as it does onmasterGroupedListshould render with indentation as it does onmasterMicrosoft Reviewers: Open in CodeFlow