Skip to content

Comments

Reduce hot-path allocations in message processing pipeline#2176

Merged
jeremydmiller merged 1 commit intomainfrom
optimizations
Feb 13, 2026
Merged

Reduce hot-path allocations in message processing pipeline#2176
jeremydmiller merged 1 commit intomainfrom
optimizations

Conversation

@jeremydmiller
Copy link
Member

Summary

  • Replace LINQ Concat/All in isMissingRequestedReply() with explicit foreach loops to eliminate enumerator and empty array allocations on every reply validation call
  • Use MessageSucceededContinuation.Instance singleton instead of allocating a new instance on every successful message execution
  • Remove unused IMessageTracker field and public constructor from MessageSucceededContinuation

Test plan

  • All 1003 CoreTests pass

🤖 Generated with Claude Code

Replace LINQ Concat/All in isMissingRequestedReply with explicit loops to
avoid enumerator allocations per call. Use MessageSucceededContinuation
singleton instead of allocating a new instance on every successful message.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant