excel4node icon indicating copy to clipboard operation
excel4node copied to clipboard

Heap out of memory for a non-formatted, 100k row file

Open bfredo123 opened this issue 4 years ago • 0 comments

Describe the bug I get a heap out of memory error when executing the code below, producing and saving a basic 100k-row file. It happens when calling the write method.

To Reproduce https://gist.github.com/bfredo123/14a2b4f47bfcbdc83afb4748623b0fb3

Expected behavior It should just save the file succesfully.

Environment (please complete the following information):

  • OS: MacOS 11.0.1
  • Node Version: 10.16.3
  • excel4node Version: 1.7.2

Additional context I can make it work with setting max-old-space-size to 4GB, but it has to run on a 2GB machine, so this is not a good option for me.

bfredo123 avatar Apr 08 '21 08:04 bfredo123