Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Nov 20, 2025

see description in each commit

overall goal: remove unnecessary DOM operations

@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.62%. Comparing base (d8bf935) to head (b2770d9).
⚠️ Report is 5 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1120      +/-   ##
============================================
- Coverage     88.63%   88.62%   -0.02%     
+ Complexity     1398     1397       -1     
============================================
  Files           105      105              
  Lines          4795     4790       -5     
============================================
- Hits           4250     4245       -5     
  Misses          545      545              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.


public function lineCoverage(string $line): Coverage
{
$coverage = $this->contextNode->getElementsByTagNameNS(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this removes one DOM call per line of code beeing analyzed. I expect this to improve performance.. will measure it

Copy link
Contributor Author

@staabm staabm Nov 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its 1-2 seconds faster. previously 21-22 seconds now ~19-20

@sebastianbergmann sebastianbergmann merged commit f0b16b3 into sebastianbergmann:main Nov 20, 2025
16 checks passed
@staabm staabm deleted the linec branch November 20, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants