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

How to speed up download? #27

Open
arivera12 opened this issue Jan 29, 2021 · 2 comments
Open

How to speed up download? #27

arivera12 opened this issue Jan 29, 2021 · 2 comments
Assignees
Labels
good first issue Good for newcomers question Further information is requested

Comments

@arivera12
Copy link
Owner

Hi

I increased the buffer size and I am now able to download my 110MB exe file but it takes 2 minutes for the download dialog to appear. I am using Blazor server app.

Is there a way of speeding the download up?

Thanks

Originally posted by @ltemimi in #24 (comment)

@arivera12
Copy link
Owner Author

arivera12 commented Jan 29, 2021

The only way to speed up download speed is to increase the buffer size here

EXAMPLE

BlazorDownloadFileService.DownloadFile(fileToDownload, bytes, 1024*64);

Bigger the buffer size, bigger are the chunks that are send from the server to the client.

Take note that your internet service provider speed is also a variant on your download speed.

This variant applies to the server and the clients.

As far I know there is nothing else we can do to speed up download rather than just increasing the download buffer size.

@arivera12
Copy link
Owner Author

I left those notations in the main readme.md of this repository

Take a look of this where I do left written some performance considerations and understandings.

https://github.com/arivera12/BlazorDownloadFile#performance-considerations-and-understandings

The next link is the signal r documentation and based on this you need to do buffer management based on your signal r ApplicationMaxBufferSize and TransportMaxBufferSize

ApplicationMaxBufferSize is the incoming connection buffer size

TransportMaxBufferSize is the outgoing connection buffer size (This is the one you need to increase download speed)

https://docs.microsoft.com/en-us/aspnet/core/signalr/security?view=aspnetcore-3.1#buffer-management

@arivera12 arivera12 self-assigned this Jan 29, 2021
@arivera12 arivera12 added good first issue Good for newcomers question Further information is requested labels Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant