Skip to content

Improve memoization of getCallNodeInfo.#4667

Merged
mstange merged 1 commit into
firefox-devtools:mainfrom
mstange:better-memoization-for-getcallnodeinfo
Jun 20, 2023
Merged

Improve memoization of getCallNodeInfo.#4667
mstange merged 1 commit into
firefox-devtools:mainfrom
mstange:better-memoization-for-getcallnodeinfo

Conversation

@mstange

@mstange mstange commented Jun 16, 2023

Copy link
Copy Markdown
Contributor

Production, Deploy preview

With this change, zooming in on a range and dropping a function gets much faster on large profiles because we don't recompute the call node table.

@mstange mstange requested a review from canova June 16, 2023 16:52
@mstange mstange self-assigned this Jun 16, 2023
@codecov

codecov Bot commented Jun 16, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (c2edadc) 88.47% compared to head (ce37c9b) 88.47%.

❗ Current head ce37c9b differs from pull request most recent head 8a761ba. Consider uploading reports for the commit 8a761ba to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4667      +/-   ##
==========================================
- Coverage   88.47%   88.47%   -0.01%     
==========================================
  Files         295      295              
  Lines       26299    26291       -8     
  Branches     7100     7097       -3     
==========================================
- Hits        23269    23261       -8     
  Misses       2818     2818              
  Partials      212      212              
Impacted Files Coverage Δ
src/selectors/per-thread/stack-sample.js 97.01% <100.00%> (+0.04%) ⬆️

... and 8 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@canova canova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

With this change, zooming in on a range and dropping a function gets
much faster on large profiles because we don't recompute the call node table.
@mstange mstange force-pushed the better-memoization-for-getcallnodeinfo branch from ce37c9b to 8a761ba Compare June 20, 2023 16:15
@mstange mstange enabled auto-merge June 20, 2023 16:16
@mstange mstange merged commit e6fecc6 into firefox-devtools:main Jun 20, 2023
@canova canova mentioned this pull request Jun 20, 2023
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.

2 participants