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

perf: cache codehash to speedup coverage tracking #472

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

samalws-tob
Copy link
Contributor

This PR adds a cache for getContractCoverageMapHash results, so that the operation doesn't need to be done every opcode. In benchmarks this improves performance by 50%-100%. See also #451

@samalws-tob samalws-tob marked this pull request as ready for review September 6, 2024 16:13
@samalws-tob samalws-tob marked this pull request as draft September 6, 2024 18:23
@samalws-tob samalws-tob force-pushed the cache-codehash-2 branch 3 times, most recently from 80bb56b to 9742681 Compare September 9, 2024 14:38
@samalws-tob samalws-tob marked this pull request as ready for review September 9, 2024 16:18
@0xalpharush 0xalpharush changed the title Cache codehash for performance perf: cache codehash to speedup coverage tracking Sep 9, 2024
@0xalpharush 0xalpharush merged commit f508070 into master Sep 9, 2024
12 checks passed
@0xalpharush 0xalpharush deleted the cache-codehash-2 branch September 9, 2024 18:07
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