Skip to content

Conversation

@ryanseys
Copy link
Contributor

This removes the buggy multipart-stream library and uses the new request library capabilities to upload streams. Uploading a 3GB file on old implementation would cause node to immediately allocate 3GB of memory. Now Node consumes memory as it uses it. In my tests with the 3GB file, the memory usage did not exceed 100MB.

Fixes #327
Fixes #236

@rakyll can you review?

Edit: Please :)

ryanseys added a commit that referenced this pull request Dec 24, 2014
@ryanseys ryanseys merged commit 8a96cb3 into googleapis:master Dec 24, 2014
@ryanseys ryanseys deleted the better-streams branch December 24, 2014 20:16
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.

Use new request library for multipart/related body media upload with read stream buffers the entire file into RAM

1 participant