Skip to content
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

fix: Move Sunburst logic from recursion to stack based #3206

Merged
merged 4 commits into from
Sep 18, 2024

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR updates the selectorMutate used in the Sunburst component from recursion to a stack based implementation. This should reduce some overhead for repos with large file counts. I did some rough napkin math and perf tracing on staging with Gazebo's repo and the total call time for selectorMutate went from 2.92ms to 0.92ms. We don't have a comparable repo to look at that has hundreds of thousands of files, but I think this is a good experiment before lowering the file count.

Notable Changes

  • Update the selectorMutate function to a stack based implementation

Copy link

codecov bot commented Sep 18, 2024

Bundle Report

Changes will increase total bundle size by 122 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-array-push 6.0MB 122 bytes ⬆️

@codecov-staging
Copy link

Bundle Report

Changes will increase total bundle size by 384 bytes ⬆️

Bundle name Size Change
gazebo-staging-array-push 6.0MB 384 bytes ⬆️

Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.14%. Comparing base (0cee584) to head (2c326ac).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3206      +/-   ##
==========================================
- Coverage   98.15%   98.14%   -0.01%     
==========================================
  Files         932      932              
  Lines       14473    14480       +7     
  Branches     3952     3962      +10     
==========================================
+ Hits        14206    14212       +6     
- Misses        262      263       +1     
  Partials        5        5              
Files Coverage Δ
...s/RepoPage/CoverageTab/OverviewTab/OverviewTab.tsx 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

Components Coverage Δ
Assets 53.48% <ø> (ø)
Layouts 98.87% <ø> (ø)
Pages 98.91% <100.00%> (+<0.01%) ⬆️
Services 99.41% <ø> (-0.04%) ⬇️
Shared 99.65% <ø> (ø)
UI 94.56% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0cee584...2c326ac. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3206      +/-   ##
==========================================
- Coverage   98.15%   98.14%   -0.01%     
==========================================
  Files         932      932              
  Lines       14473    14480       +7     
  Branches     3952     3957       +5     
==========================================
+ Hits        14206    14212       +6     
- Misses        262      263       +1     
  Partials        5        5              
Files Coverage Δ
...s/RepoPage/CoverageTab/OverviewTab/OverviewTab.tsx 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

Components Coverage Δ
Assets 53.48% <ø> (ø)
Layouts 98.87% <ø> (ø)
Pages 98.91% <100.00%> (+<0.01%) ⬆️
Services 99.41% <ø> (-0.04%) ⬇️
Shared 99.65% <ø> (ø)
UI 94.56% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0cee584...2c326ac. Read the comment docs.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Sep 18, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
2c326ac Wed, 18 Sep 2024 11:26:16 GMT Expired Expired
2c326ac Wed, 18 Sep 2024 11:31:14 GMT Cloud Enterprise

@codecov-qa
Copy link

codecov-qa bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.14%. Comparing base (0cee584) to head (2c326ac).
Report is 4 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3206      +/-   ##
==========================================
- Coverage   98.15%   98.14%   -0.01%     
==========================================
  Files         932      932              
  Lines       14473    14480       +7     
  Branches     3952     3876      -76     
==========================================
+ Hits        14206    14212       +6     
- Misses        262      263       +1     
  Partials        5        5              
Files with missing lines Coverage Δ
...s/RepoPage/CoverageTab/OverviewTab/OverviewTab.tsx 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

Components Coverage Δ
Assets 53.48% <ø> (ø)
Layouts 98.87% <ø> (ø)
Pages 98.91% <100.00%> (+<0.01%) ⬆️
Services 99.41% <ø> (-0.04%) ⬇️
Shared 99.65% <ø> (ø)
UI 94.56% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0cee584...2c326ac. Read the comment docs.

@nicholas-codecov nicholas-codecov added this pull request to the merge queue Sep 18, 2024
Merged via the queue into main with commit aab98e2 Sep 18, 2024
53 of 54 checks passed
@nicholas-codecov nicholas-codecov deleted the fix-limit-sunburst-also-off-of-line-count branch September 18, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants