Closed genzgd closed 2 years ago
Unfortunately, that seems to be a hard Node.js limitation. We cannot use strings larger than 512Mb at the moment. If I understand it correctly, the max size was increased from 256Mb to 1Gb in the past and then reduced to 512Mb.
See
My tests showed that it indeed crashes at around 512Mb of size, with the resulting string's length around 536870888.
Crashes when reading 50,000,000 numbers (at least on my Mac M1).
Code to reproduce (against localhost/local docker):
Exception: