Skip to content
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

Use set instead of list for arcs_executed, fixes poor performance #1901

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

turibe
Copy link
Contributor

@turibe turibe commented Dec 3, 2024

This fixes very poor performance in "coverage.xml" for a large-ish code base, which I traced to the arcs_missing procedure. (Could probably improve further using set difference.)

@nedbat
Copy link
Owner

nedbat commented Dec 3, 2024

Nice, thanks! Do you have any stats on the size of the repo and the speed up?

@nedbat nedbat merged commit 346cfc0 into nedbat:master Dec 4, 2024
32 checks passed
nedbat added a commit that referenced this pull request Dec 4, 2024
@turibe
Copy link
Contributor Author

turibe commented Dec 4, 2024

Nice, thanks! Do you have any stats on the size of the repo and the speed up?

Speedup went from 730 seconds ("cant-wait-that-long-will-do-control-C"), to 13 seconds, for coverage xml.

@nedbat
Copy link
Owner

nedbat commented Dec 6, 2024

This is now released as part of coverage 7.6.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants