Skip to content

Commit a514082

Browse files
committed
Delete the source code from the token cache when we're done calculating statistics. This greatly reduces memory usage when running coverage against many files. Paired with Mark French.
1 parent 66f6448 commit a514082

File tree

1 file changed

+2
-0
lines changed
  • PHP/CodeCoverage/Report/HTML/Node

1 file changed

+2
-0
lines changed

PHP/CodeCoverage/Report/HTML/Node/File.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ public function __construct($name, PHP_CodeCoverage_Report_HTML_Node $parent, ar
169169
);
170170

171171
$this->calculateStatistics();
172+
173+
PHP_Token_Stream_CachingFactory::delete($path);
172174
}
173175

174176
/**

0 commit comments

Comments
 (0)