It takes more than a minute to parse 50kb file on the top spec machine.
I am not a javascript specialist but major reasons for slowness:
if file has N lines, every line gets copied N times. This is very expensive - shift of string array is used.
modern APIs are now available to read file line by line instead all of it in one go.
It takes more than a minute to parse 50kb file on the top spec machine. I am not a javascript specialist but major reasons for slowness: if file has N lines, every line gets copied N times. This is very expensive - shift of string array is used. modern APIs are now available to read file line by line instead all of it in one go.