-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(scripts-*): speed up all isConverged, getAllPackageInfo calls/usage by ~95%
#31008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Hotell
merged 6 commits into
microsoft:master
from
Hotell:perf/speed-up-beachbal-config-creation
Apr 12, 2024
Merged
feat(scripts-*): speed up all isConverged, getAllPackageInfo calls/usage by ~95%
#31008
Hotell
merged 6 commits into
microsoft:master
from
Hotell:perf/speed-up-beachbal-config-creation
Apr 12, 2024
Conversation
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
…ge util to accept allProjects param which drastically improves execution
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| FluentProviderWithTheme | virtual-rerender | 29 | 34 | 10 | Possible regression |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 75 | 73 | 10 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 615 | 645 | 5000 | |
| Button | mount | 317 | 310 | 5000 | |
| Field | mount | 1100 | 1112 | 5000 | |
| FluentProvider | mount | 703 | 712 | 5000 | |
| FluentProviderWithTheme | mount | 78 | 78 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 29 | 34 | 10 | Possible regression |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 75 | 73 | 10 | Possible regression |
| MakeStyles | mount | 834 | 872 | 50000 | |
| Persona | mount | 1741 | 1694 | 5000 | |
| SpinButton | mount | 1365 | 1376 | 5000 |
Collaborator
Perf Analysis (
|
| Scenario | Current PR Ticks | Baseline Ticks | Ratio | Regression Analysis |
|---|---|---|---|---|
| PortalMinimalPerf.default | 93 | 83 | 1.12:1 | analysis |
Perf tests with no regressions
| Scenario | Current PR Ticks | Baseline Ticks | Ratio |
|---|---|---|---|
| TreeWith60ListItems.default | 89 | 79 | 1.13:1 |
| ChatDuplicateMessagesPerf.default | 161 | 145 | 1.11:1 |
| TextMinimalPerf.default | 203 | 183 | 1.11:1 |
| PopupMinimalPerf.default | 365 | 333 | 1.1:1 |
| AttachmentMinimalPerf.default | 81 | 75 | 1.08:1 |
| ButtonMinimalPerf.default | 95 | 89 | 1.07:1 |
| FlexMinimalPerf.default | 161 | 151 | 1.07:1 |
| ProviderMinimalPerf.default | 207 | 194 | 1.07:1 |
| FormMinimalPerf.default | 225 | 213 | 1.06:1 |
| TableMinimalPerf.default | 240 | 227 | 1.06:1 |
| AccordionMinimalPerf.default | 86 | 82 | 1.05:1 |
| AvatarMinimalPerf.default | 109 | 104 | 1.05:1 |
| GridMinimalPerf.default | 187 | 178 | 1.05:1 |
| LoaderMinimalPerf.default | 193 | 184 | 1.05:1 |
| VideoMinimalPerf.default | 461 | 437 | 1.05:1 |
| DropdownManyItemsPerf.default | 399 | 382 | 1.04:1 |
| InputMinimalPerf.default | 532 | 511 | 1.04:1 |
| RadioGroupMinimalPerf.default | 264 | 255 | 1.04:1 |
| SliderMinimalPerf.default | 774 | 746 | 1.04:1 |
| TreeMinimalPerf.default | 492 | 474 | 1.04:1 |
| DividerMinimalPerf.default | 201 | 196 | 1.03:1 |
| HeaderMinimalPerf.default | 209 | 203 | 1.03:1 |
| ItemLayoutMinimalPerf.default | 714 | 692 | 1.03:1 |
| LayoutMinimalPerf.default | 196 | 191 | 1.03:1 |
| AnimationMinimalPerf.default | 302 | 295 | 1.02:1 |
| BoxMinimalPerf.default | 192 | 189 | 1.02:1 |
| ButtonSlotsPerf.default | 322 | 317 | 1.02:1 |
| CheckboxMinimalPerf.default | 1139 | 1119 | 1.02:1 |
| ListCommonPerf.default | 382 | 376 | 1.02:1 |
| SegmentMinimalPerf.default | 204 | 200 | 1.02:1 |
| SkeletonMinimalPerf.default | 202 | 198 | 1.02:1 |
| IconMinimalPerf.default | 385 | 376 | 1.02:1 |
| TooltipMinimalPerf.default | 1283 | 1262 | 1.02:1 |
| ButtonOverridesMissPerf.default | 639 | 635 | 1.01:1 |
| CardMinimalPerf.default | 312 | 310 | 1.01:1 |
| DialogMinimalPerf.default | 438 | 434 | 1.01:1 |
| DropdownMinimalPerf.default | 1434 | 1419 | 1.01:1 |
| EmbedMinimalPerf.default | 1882 | 1855 | 1.01:1 |
| HeaderSlotsPerf.default | 459 | 453 | 1.01:1 |
| MenuButtonMinimalPerf.default | 943 | 932 | 1.01:1 |
| TableManyItemsPerf.default | 1102 | 1089 | 1.01:1 |
| CarouselMinimalPerf.default | 264 | 263 | 1:1 |
| ProviderMergeThemesPerf.default | 651 | 649 | 1:1 |
| RefMinimalPerf.default | 109 | 109 | 1:1 |
| SplitButtonMinimalPerf.default | 2219 | 2221 | 1:1 |
| TextAreaMinimalPerf.default | 296 | 296 | 1:1 |
| MenuMinimalPerf.default | 500 | 503 | 0.99:1 |
| StatusMinimalPerf.default | 383 | 386 | 0.99:1 |
| CustomToolbarPrototype.default | 1456 | 1476 | 0.99:1 |
| ToolbarMinimalPerf.default | 531 | 537 | 0.99:1 |
| AlertMinimalPerf.default | 151 | 154 | 0.98:1 |
| ImageMinimalPerf.default | 227 | 231 | 0.98:1 |
| DatepickerMinimalPerf.default | 3450 | 3539 | 0.97:1 |
| RosterPerf.default | 1492 | 1546 | 0.97:1 |
| LabelMinimalPerf.default | 217 | 225 | 0.96:1 |
| ListMinimalPerf.default | 304 | 317 | 0.96:1 |
| ListNestedPerf.default | 314 | 327 | 0.96:1 |
| ListWith60ListItems.default | 349 | 362 | 0.96:1 |
| ReactionMinimalPerf.default | 205 | 214 | 0.96:1 |
| ChatWithPopoverPerf.default | 183 | 192 | 0.95:1 |
| ChatMinimalPerf.default | 414 | 441 | 0.94:1 |
| AttachmentSlotsPerf.default | 606 | 658 | 0.92:1 |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Collaborator
🕵 fluentuiv8 No visual regressions between this PR and main |
Collaborator
🕵 FluentUIV0 No visual regressions between this PR and main |
Collaborator
📊 Bundle size report
Unchanged fixtures
|
Collaborator
🕵 fluentuiv9 No visual regressions between this PR and main |
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| BaseButton | mount | 623 | 600 | 5000 | |
| Breadcrumb | mount | 1683 | 1664 | 1000 | |
| Checkbox | mount | 1653 | 1692 | 5000 | |
| CheckboxBase | mount | 1484 | 1440 | 5000 | |
| ChoiceGroup | mount | 2900 | 2895 | 5000 | |
| ComboBox | mount | 650 | 658 | 1000 | |
| CommandBar | mount | 6176 | 6118 | 1000 | |
| ContextualMenu | mount | 11470 | 12080 | 1000 | |
| DefaultButton | mount | 743 | 736 | 5000 | |
| DetailsRow | mount | 2219 | 2167 | 5000 | |
| DetailsRowFast | mount | 2176 | 2167 | 5000 | |
| DetailsRowNoStyles | mount | 1991 | 1996 | 5000 | |
| Dialog | mount | 2570 | 2799 | 1000 | |
| DocumentCardTitle | mount | 218 | 228 | 1000 | |
| Dropdown | mount | 1993 | 1981 | 5000 | |
| FocusTrapZone | mount | 1160 | 1142 | 5000 | |
| FocusZone | mount | 1084 | 1090 | 5000 | |
| GroupedList | mount | 41507 | 41390 | 2 | |
| GroupedList | virtual-rerender | 19971 | 19862 | 2 | |
| GroupedList | virtual-rerender-with-unmount | 50602 | 50424 | 2 | |
| GroupedListV2 | mount | 225 | 225 | 2 | |
| GroupedListV2 | virtual-rerender | 205 | 205 | 2 | |
| GroupedListV2 | virtual-rerender-with-unmount | 211 | 227 | 2 | |
| IconButton | mount | 1082 | 1094 | 5000 | |
| Label | mount | 317 | 332 | 5000 | |
| Layer | mount | 2683 | 2662 | 5000 | |
| Link | mount | 387 | 392 | 5000 | |
| MenuButton | mount | 958 | 937 | 5000 | |
| MessageBar | mount | 21655 | 21324 | 5000 | |
| Nav | mount | 1933 | 1944 | 1000 | |
| OverflowSet | mount | 789 | 767 | 5000 | |
| Panel | mount | 1995 | 1781 | 1000 | |
| Persona | mount | 724 | 754 | 1000 | |
| Pivot | mount | 869 | 871 | 1000 | |
| PrimaryButton | mount | 841 | 852 | 5000 | |
| Rating | mount | 4559 | 4505 | 5000 | |
| SearchBox | mount | 882 | 905 | 5000 | |
| Shimmer | mount | 1879 | 1872 | 5000 | |
| Slider | mount | 1306 | 1314 | 5000 | |
| SpinButton | mount | 2835 | 2842 | 5000 | |
| Spinner | mount | 381 | 400 | 5000 | |
| SplitButton | mount | 1828 | 1813 | 5000 | |
| Stack | mount | 397 | 411 | 5000 | |
| StackWithIntrinsicChildren | mount | 841 | 846 | 5000 | |
| StackWithTextChildren | mount | 2603 | 2606 | 5000 | |
| SwatchColorPicker | mount | 6207 | 6126 | 5000 | |
| TagPicker | mount | 1468 | 1455 | 5000 | |
| Text | mount | 357 | 365 | 5000 | |
| TextField | mount | 922 | 904 | 5000 | |
| ThemeProvider | mount | 822 | 834 | 5000 | |
| ThemeProvider | virtual-rerender | 577 | 578 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 1253 | 1270 | 5000 | |
| Toggle | mount | 625 | 597 | 5000 | |
| buttonNative | mount | 191 | 193 | 5000 |
Hotell
commented
Apr 10, 2024
Hotell
commented
Apr 10, 2024
isConverged calls by ~95%
isConverged calls by ~95%isConverged, getAllPackageInfo calls/usage by ~95%
TristanWatanabe
approved these changes
Apr 11, 2024
TristanWatanabe
approved these changes
Apr 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.

Previous Behavior
New Behavior
Using
readProjectConfigurationapi for more than 1 call is extremely expensive. This was happening in various parts of our infra:This PR refactores critical API's in our core infra to simplify logic and make things significantly faster 🚅🚅🚅
running
lage build(whole monorepo):lage build- 200 (count of monorepo projects) runsisConvergedPackage()metadata.isConverged()Related Issue(s)