Hi!
FileSelect, when used with large files, slows down the upload speed.
In my case, when going from 10MB to 100MB, upload speed goes from 2MB/s down to 300KB/s. I'm uploading into a MemoryStream with an initial capacity of the size of the file, in order to avoid reallocations.
Best fit for the upload time in seconds, given the file size in MB seems to be:
There seems O(n^2) complexity hidden somewhere. Does anyone know what's going on?