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: memory usage #1227

Merged
merged 1 commit into from
Dec 7, 2023
Merged

fix: memory usage #1227

merged 1 commit into from
Dec 7, 2023

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Dec 7, 2023

Previously parallel-transform-web was running up to N transform tasks concurrently, but while those tasks were running it buffered the rest of the stream data internally 🤦 .

This was resolved in alanshaw/parallel-transform-web#1 so just pulling in the latest code here.

I was seeing memory usage in w3cli for a 12GB file grow to ~10GB but now it stays at around at round ~4GB (which is the same usage I see when I remove parallel-transform-web and replace it with a regular serial TransformStream).

Copy link
Contributor

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

thanks ❤️

@alanshaw alanshaw merged commit c9e7a49 into main Dec 7, 2023
14 checks passed
@alanshaw alanshaw deleted the fix/memory-usage branch December 7, 2023 14:06
alanshaw pushed a commit that referenced this pull request Dec 7, 2023
🤖 I have created a release *beep* *boop*
---


##
[12.3.2](upload-client-v12.3.1...upload-client-v12.3.2)
(2023-12-07)


### Fixes

* memory usage
([#1227](#1227))
([c9e7a49](c9e7a49))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
alanshaw pushed a commit to storacha/w3cli that referenced this pull request Dec 7, 2023
Previously `parallel-transform-web` was running up to N transform tasks concurrently, but while those tasks were running it buffered the rest of the stream data internally 🤦 .

This was resolved in alanshaw/parallel-transform-web#1 and then storacha/w3up#1227 so just pulling in the latest code here.

I was seeing memory usage in w3cli for a 12GB file grow to ~10GB but now it stays at around at round ~4GB (which is the same usage I see when I remove `parallel-transform-web` and replace it with a regular serial `TransformStream`).
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