-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Prevent file IO when not strictly necessary #5742
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. |
3299d8c
into
sebastianbergmann:10.5
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.