-
-
Notifications
You must be signed in to change notification settings - Fork 378
Implementation of MapBuilder::build()
could be more efficient
#1072
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
Comments
team analysis yieled
|
I had a look for a few hours at the current implementation. Did a few experiments but nothing yielded a meaningful improvement. either we need a more real world reproducer, or the bottleneck does not kick in as long as the cache is poppulated/warm. |
Wrapping my head around this wasn't easy with me being unfamiliar with the code and the variables just being $filename and $directory. But if I got everything right, we should be able to compute the file hash only once in https://github.com/sebastianbergmann/php-code-coverage/blob/main/src/StaticAnalysis/CachingFileAnalyser.php#L212 and store that in a Preliminary testing suggests a small speed up in the test case you posted, but I will do some more testing |
I have uncommitted changes that, once complete, change the API of the static analysis from files to source, reducing the number of |
Here is a script for profiling the code in question.
The text was updated successfully, but these errors were encountered: