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

remove seemingly unnecessary step #675

Conversation

byronanderson
Copy link
Contributor

@byronanderson byronanderson commented May 9, 2024

This will bring a stream into memory, which can take a lot of memory unnecessarily

Admittedly there is a lot of intermediate code that I can't attach here, but replacing the finch adapter with the httpc adapter looks like this with a 10G multipart request body:

Finch adapter:

finch

httpc adapter:

httpc

(Notice that the units are different between the two screenshots, one is in MB and the other in GB)

I can try to characterize the memory issue I am seeing with a test if you would like to see, but uploading a big file to see a memory spike in a test seems like a test you wouldn't want in the long term.

this will bring a stream into memory, which can take a lot of memory unnecessarily
@yordis yordis merged commit 52bf0ff into elixir-tesla:master May 9, 2024
9 checks passed
@yordis
Copy link
Member

yordis commented May 9, 2024

🚀 💜

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