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

Sm/tweaks fp #577

Merged
merged 3 commits into from
Feb 15, 2022
Merged

Sm/tweaks fp #577

merged 3 commits into from
Feb 15, 2022

Conversation

mshanemc
Copy link
Contributor

What does this PR do?
Begins writing StaticResource files as soon as possible, rather than deferring them to the WriteInfos and finalizers

What issues does this PR fix or reference?
forcedotcom/cli#1348, @W-10417338@

Functionality Before
A large spike in memory usage as SDR writes all SR files, up to 3GB but really unrestricted

Functionality After
no spike in memory usage when writing SR files

QA helpful notes:
clone the repo mentioned in the issue
open activity monitory
deploy everything in the project to a new SO
retrieve -m StaticResource while looking at activity monitory
notice huge spike in the memory right before it prints the table, the spinner even slows down

@mshanemc mshanemc requested review from a team as code owners February 14, 2022 23:32
@mshanemc mshanemc requested a review from randi274 February 14, 2022 23:32
@WillieRuemmele WillieRuemmele merged commit 2c86bc6 into wr/memoryUsage Feb 15, 2022
@WillieRuemmele WillieRuemmele deleted the sm/tweaks-fp branch February 15, 2022 00:08
mshanemc added a commit that referenced this pull request Feb 15, 2022
* chore: initial cleanup, average lower, still spikes to 3GB

* chore: staticresource unzip now pipelined asap

* chore: add UTs

* chore: revert some changes from global pipeline effort

* Sm/tweaks fp (#577)

* perf: promise.all the pipelining

* test: equal in any order

* chore: adding types for SDR

Co-authored-by: Shane McLaughlin <[email protected]>
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