Prevent file IO when not strictly necessary#5742
Prevent file IO when not strictly necessary#5742sebastianbergmann merged 1 commit intosebastianbergmann:10.5from
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 10.5 #5742 +/- ##
============================================
- Coverage 90.08% 90.08% -0.01%
+ Complexity 6438 6436 -2
============================================
Files 680 680
Lines 19534 19532 -2
============================================
- Hits 17598 17596 -2
Misses 1936 1936 ☔ View full report in Codecov by Sentry. |
8a19c56 to
0deae13
Compare
|
should be good to go. |
|
If I use https://github.com/imiphp/imi/actions/runs/8342624739/job/22831196788 |
|
Sounds like your error handler does not properly detect the Could you provide more information and a full reproducer (please open a new issue) |
|
@sebastianbergmann let me try to clean this up a bit, so we are more generous in such cases |
revert parts of sebastianbergmann#5742
revert parts of #5742
|
This PR fixes my issue: imiphp/imi#683 Use |
|
@Yurunsoft your PR looks good. The latest phpunit release relaxed this PRs changes/regressions with #5765 |
file IO largely depends on hardware and performance can vary a lot. it needs to be avoided at all cost.
especially on windows IO is slow (in comparison to linux based systems).
this PR re-orders conditions to do the IO only at the very last.