Skip to content

Commit 47842d2

Browse files
gimlerDavertMik
authored andcommitted
speedup initialization (#27)
When the coverage object is used from cache we do not need to add the config again. We have over 3000 files it takes ~18sec to collect the file list. So this speed up the coverage run a lot.
1 parent 4ec6686 commit 47842d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: c3.php

+2
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ function __c3_factory($filename, $lock=false)
190190
} else {
191191
$phpCoverage = unserialize(file_get_contents($filename));
192192
}
193+
194+
return array($phpCoverage, $file);
193195
} else {
194196
$phpCoverage = new PHP_CodeCoverage();
195197
}

0 commit comments

Comments
 (0)