Open SupertigerDev opened 2 months ago
ah yeah, this is an easily fixable problem
though we shouldn't be pre-allocating more than 4 GB at a time anyway
Thanks for your reply! Although I'm confused with it 😅 was there an issue with my approach of the code?
What version of Bun is running?
1.1.26
What platform is your computer?
Windows 11 64bit 23H2 (uname command is not found for some reason)
What steps can reproduce the bug?
Upload a large binary(5gb) using postman
What is the expected behavior?
It should not crash. Just like nodejs, it shoud load it in small chunks.
What do you see instead?
Additional information
While this code above crashes, the code below loads EVERYTHING in memory which is not ideal. It should load it in chunks, just like nodejs.