SteveSandersonMS / BlazorInputFile

A file input component for Blazor applications
250 stars 75 forks source link

ReadAsync into memory stream is extremely slow #34

Open TechCitySouth opened 4 years ago

TechCitySouth commented 4 years ago

Steve,

I set up the simple demo per your writeup. Loading a 15Mb file takes 55 seconds! Your writeup says "...For client-side Blazor (WebAssembly), the data transfer speed is limited only by your CPU. You can load a 10 MB file into .NET memory almost instantly. On my machine, loading a 100 MB file into a .NET byte array takes about a second...." Can you provide the sample code that accomplished this?

Lupusa87 commented 4 years ago

If it will be helpful to you please check this demo and this repo. Based on Steve's work I have made my own library for loading files.