We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87824e8 commit 4b1604dCopy full SHA for 4b1604d
src/main/scala/scoverage/Invoker.scala
@@ -27,7 +27,9 @@ object Invoker {
27
def invoked(id: Int, dataDir: String) = {
28
// [sam] we can do this simple check to save writing out to a file.
29
// This won't work across JVMs but since there's no harm in writing out the same id multiple
30
- // times (it just slows things down), anything we can do to help is good.
+ // times since for coverage we only care about 1 or more, (it just slows things down to
31
+ // do it more than once), anything we can do to help is good. This helps especially with code
32
+ // that is executed many times quickly, eg tight loops.
33
if (!invoked.contains(id)) {
34
// Each thread writes to a separate measurement file, to reduce contention
35
// and because file appends via FileWriter are not atomic on Windows.
0 commit comments