Skip to content

perf: speed up async min/max on .NET 11 - #212

Merged
ChrisPulman merged 1 commit into
mainfrom
perf/net11-adoption
Sep 12, 2026
Merged

ChrisPulman merged 1 commit into
mainfrom
perf/net11-adoption

Conversation

@glennawatson

@glennawatson glennawatson commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

  • Performance and build improvements.

What is the new behavior?

  • Async GetMin and GetMax can process integer values faster on .NET 11 using the existing buffer.
  • Earlier .NET versions keep the existing implementation.
  • Async projects use stable C# 15 features.

What is the current behavior?

  • Async minimum and maximum operators compare each value in a loop.
  • Three async projects request preview language features.

What might this PR break?

  • No public API changes or migration steps.

Checklist

  • I have read the Contribute guide
  • Tests have been added or updated (for bug fixes / features)
  • Docs have been added or updated (for bug fixes / features)
  • Changes target the main branch
  • PR title follows Conventional Commits

- Use span min/max over the existing async snapshot buffer on .NET 11.
- Add comparison regression tests and a reduction benchmark.
- Use stable C# 15 while retaining the runtime async compiler switch.
@glennawatson glennawatson changed the title perf: adopt .NET 11 library improvements perf: speed up async min/max on .NET 11 Sep 12, 2026
@codecov

codecov Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.77%. Comparing base (6dab874) to head (ee91ae3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #212   +/-   ##
=======================================
  Coverage   99.77%   99.77%           
=======================================
  Files         714      714           
  Lines       22219    22221    +2     
  Branches     2733     2735    +2     
=======================================
+ Hits        22169    22171    +2     
  Misses         49       49           
  Partials        1        1           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud

Copy link
Copy Markdown

@ChrisPulman
ChrisPulman merged commit a914521 into main Sep 12, 2026
13 checks passed
@ChrisPulman
ChrisPulman deleted the perf/net11-adoption branch September 12, 2026 23:32
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