davglass / lcov-parse

Simple LCOV file parser
Other
53 stars 13 forks source link

Gets unpractically slow on files of 50kb size #10

Open cooldome opened 6 years ago

cooldome commented 6 years ago

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.

pavelsaman commented 1 year ago

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.