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

Significantly speed up coverage collection #39

Merged
merged 1 commit into from Mar 12, 2020
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Significantly speed up coverage collection

This reduces the time spent in get_coverage from
~30% to ~2% in my local tests on Python3.
  • Loading branch information
jvoisin committed Mar 6, 2020
commit e438c4cbe850c357a11465c00bbfe60b91aba995
@@ -30,7 +30,4 @@ def trace(frame, event, arg):


def get_coverage():
ret = 0
for value in data.values():
ret += len(value)
return ret
return sum(map(len, data.values()))
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.