lcov-parse
lcov-parse copied to clipboard
Gets unpractically slow on files of 50kb size
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.
If you are looking for coverage percentages (total and per source file), I created this: https://github.com/pavelsaman/total-coverage/ It reads the lcov file line by line.