dropbox / dropbox/dropbox-sdk-dotnet
Performance Issue with download
Open
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
Assessment
This issue has not been assessed yet.