Skip to content

Generate cover HTML files in parallel #13596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 24, 2024

Conversation

ypconstante
Copy link
Contributor

Today the coverage HTML files are generated one at a time using :cover.analyse_to_file.

This PR changes this code to use :cover.async_analyse_to_file to generate the files in parallel, speeding up the coverage report.

On a M1 in a project with 1k modules, the time to generate the HTML files went from 4 seconds to 1.2 seconds.

@josevalim josevalim merged commit 22371ce into elixir-lang:main May 24, 2024
9 checks passed
@ypconstante ypconstante deleted the cover-parallel-html-files branch May 24, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants