mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
[GH-ISSUE #669] Efficiently handle large objects #116
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gaul on GitHub (Feb 2, 2022).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/669
Currently
multipartUploadanduploadFileContentcallsloadContentwhich callsioutil.ReadAllwhich loads the entire request body into memory. Instead it should stream the body to disk when using the filesystem backend. This will reduce memory usage when testing large objects, e.g., 2 GB.@fsouza commented on GitHub (Feb 2, 2022):
@gaul do you think we can close this now that #670 is merged and #671 is open to track the move away from JSON?
@gaul commented on GitHub (Feb 3, 2022):
These issues relate but have a somewhat different scope. This one should include any memory optimization for large files, e.g., removing the call to
append(obj.Content)inuploadFileContentwhich doubles memory usage.