You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lcov 1.15 uses core module JSON::PP for parsing gcov-9 output. This
slowed down analysis for my project 10 times (with GCC 5 they uses txt
format).
My changes add an option to configure JSON module for lcov. To reach
past performance I can force lcov to use fast JSON::XS module, e.g.:
$ lcov --capture --directory $products --output-file $file
--rc lcov_json_module=JSON::XS
As this is not a Perl core module you should install it by yourself:
$ cpan JSON:XS
Regarding performance, here is execution time for a specific file:
JSON::PP (default): 0m10.764s
JSON::XS : 0m0.542s
Cpanel::JSON::XS : 0m0.618s
No JSON (GCC 5) : 0m0.444s
[oberpar: added verbose commit log from pull request, fixed typos,
renamed rc option to lcov_* to make it more versatile]
Signed-off-by: Odinochenko Aleksey <[email protected]>
0 commit comments