Using the slurp option -- -S, -slurp -- causes gron to read all the
data into RAM before processing. Tested on a 102M JSON file - memory
usage is about 400M for parsing the first object.
Fixes #70 (in a fairly sledgehammer way, I suppose, but it's easier for
people to deal with "read the whole file" than try to guess a number for
a buffer size, especially if you don't know the file size in advance.)
Tests pass but linting doesn't but then agan linting also doesn't pass on
the unmodified master either because gometalint is broken these days.
Using the slurp option --
-S
,-slurp
-- causes gron to read all the data into RAM before processing. Tested on a 102M JSON file - memory usage is about 400M for parsing the first object.Fixes #70 (in a fairly sledgehammer way, I suppose, but it's easier for people to deal with "read the whole file" than try to guess a number for a buffer size, especially if you don't know the file size in advance.)
Tests pass but linting doesn't but then agan linting also doesn't pass on the unmodified master either because
gometalint
is broken these days.