Skip to content

Conversation

jvoisin
Copy link
Contributor

@jvoisin jvoisin commented Dec 18, 2019

This commit adds memoization to the abs_file function, speeding up coverage
collection in a significative way.

This was originally done to improve the number of executions per second of
pythonfuzz, with the original
benchmark available here,
yielding roughly 55% more performances.

This commit adds memoization to the abs_file function, speeding up coverage
collection in a significative way.

This was originally done to improve the number of executions per second of
[pythonfuzz](https://github.com/fuzzitdev/pythonfuzz), with the original
benchmark available [here](fuzzitdev/pythonfuzz#9),
yielding roughly 55% more performances.
@jvoisin
Copy link
Contributor Author

jvoisin commented Dec 18, 2019

Mh, apparently pythonfuzz is using an old version of coverage.py, making this improvement kinda irrelevant, sorry about the noise.

@jvoisin jvoisin closed this Dec 18, 2019
@nedbat
Copy link
Owner

nedbat commented Dec 19, 2019

@jvoisin Thanks anyway, I appreciate the effort. The description had me a little excited that you found an improvement! :)

@jvoisin
Copy link
Contributor Author

jvoisin commented Dec 19, 2019

Well, worse case, it's still a valid, easy, but unfortunately minor improvement :)
But I don't think it's worth the hassle to put it into a merge-able state if it's not trivially doable :/

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