Open kaleidawave opened 4 years ago
I'm not so familiar with oaks code but I think it is because of the many loops which are used to parse. Also for await can get really slow when it iterates over something big so that might be an issue too
Bump ^^ Currently it takes about 2 seconds to read a 7.7mb file. Would be nice if it could be fixed soon .-.
The biggest challenge is https://github.com/denoland/deno/issues/10157. Deno is adding a benchmark to try to focus on improving the performance (see: https://github.com/denoland/deno/pull/11862). I will try to take a look at some point if there are additional challenges in oak, but the big bottleneck at the moment is Deno.
Hi, it seems that some improvements have been done from 2021 to today, see commit: https://github.com/denoland/deno/issues/10157#issuecomment-2074403091 , do we have a benchmark on uploading big files?
I am finding that parsing form data with files is very slow. Some crude testing but oak form data parsing seems to be ~75x times longer than express's multer
With oak parsing form data with a single short string field and a 1.6mb jpeg image takes ~7500ms. On the other hand multer parses the ~100ms
Oak Deno Test:
NodeJS Express Multer Test: