Conversation
…sk boxing Co-authored-by: zachsaw <2786416+zachsaw@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor standard casts to Unsafe.As in Send methods
Replace boxing casts with Feb 28, 2026
Unsafe.As in generated Send methods
zachsaw
reviewed
Feb 28, 2026
…laim Co-authored-by: zachsaw <2786416+zachsaw@users.noreply.github.com>
Copilot
AI
changed the title
Replace boxing casts with
Fix README allocation claims: V3.1 rename + IValueSender alloc-free correction
Feb 28, 2026
Unsafe.As in generated Send methods0697d45 to
7284da6
Compare
Copilot stopped work on behalf of
zachsaw due to an error
March 8, 2026 03:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The README incorrectly labeled the new ValueTask features as "V4" (non-breaking, so V3.1) and contained a stale note claiming
IValueSender.Sendstill had boxing overhead — the opposite of what theUnsafe.Aschange achieved.Changes
What's New in V4→What's New in V3.1throughout (ToC, heading, body)IValueSender.Sendrow updated from "Reduced allocation" → "Zero allocation — fully alloc-free in the mediator infrastructure"IValueSender.Send+IValueRequestHandler(no behaviors): fully alloc-free —Unsafe.Asreinterpret, structValueTask<TResponse>return, non-asyncgeneratedHandle_Xxxmethod, nothing heap-allocatesIValuePublisher.Publish: same zero-cost dictionary routing, but the generated notification fan-out usesasynciteration, which may allocate when handlers are genuinely asynchronous — "dispatch layer" qualifier retained for this rowIValueSender.Send+IValueRequestHandlerIValuePublisher.Publish+IValueNotificationHandlerOriginal prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.