lcov-parse icon indicating copy to clipboard operation
lcov-parse copied to clipboard

Gets unpractically slow on files of 50kb size

Open cooldome opened this issue 5 years ago • 1 comments

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.

cooldome avatar Nov 06 '18 00:11 cooldome

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.

pavelsaman avatar Sep 03 '23 17:09 pavelsaman