Open Booteille opened 1 week ago
This is an interesting bug. It seems like a bug in Deno rather than fflate
if I'm being honest, but I'll have a look.
The reason you're seeing the 150kB switch point is likely due to the main-thread vs. workerized compression heuristics fflate
uses; files are compressed on the main thread below a certain size (so workers aren't used at all), but use separate threads at larger sizes. It seems like there's an issue with fflate
's worker generation strategy when running on Deno, which is why it seems to break above 150kB.
Thanks for reporting this!
Thanks a lot for your answer! I truly appreciate the fact you take the time to think about the issue.
I'll report this issue to deno devs as soon as I've time!
Hi!
I am trying to use the async version of
zip
function, usingdeno
runtime. Unfortunately, my code returns an error when trying to upload a file higher than 150kb (but works perfectly fine when using files lower in size).Here are the test files: fakefile_150KB.txt fakefile_151KB.txt
Have you any clue on how to solve this issue?
Thanks.
How to reproduce The code used:
The problem
I am on Linux Pop!_OS, using deno 2.0.4 runtime. fflate is in version 0.8.2.