dropbox / dropbox/dropbox-sdk-dotnet

Performance Issue with download

Open
#19 11 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
347
Forks
439
Avg merge
4m
Merged PRs (30d)
9

Description

Hi,
I have observed a serious performance issue with the upload functionality. The upload caches entire file content in memory twice!!! If I upload a 100 MB file the application memory consumption jumps by 200 MB.

The problem lies on the DropboxRequestHandler.RequestJsonStringWithRetry(string host, string routeName, RouteStyle routeStyle, string requestArg, Stream body = null)

If the stream to upload is is seek-able, then for retry to work the content is cached twice using memory stream!!!.

Is there a way to override this behavior?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.