Skip to content

Conversation

@RichardBradley
Copy link
Contributor

If we store the statements in a hash-map by id, then we can do a hash lookup when matching invocation ids to statement objects, rather than a "find" which needs to scan all statements.

This takes my test run (sbt scoverage:test, without a "clean") from 3m22 to 1m28. This number may overstate the improvement; I haven't done very many tests.

sksamuel added a commit that referenced this pull request May 15, 2014
Don't scan all statements on each hit -- there may be very many of them
@sksamuel sksamuel merged commit 3a9ccde into scoverage:master May 15, 2014
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