Skip to content

UnreferenceDisposable made slimmer#627

Merged
halter73 merged 2 commits intomodelcontextprotocol:mainfrom
Scooletz:sse-smaller-scope
Jul 18, 2025
Merged

UnreferenceDisposable made slimmer#627
halter73 merged 2 commits intomodelcontextprotocol:mainfrom
Scooletz:sse-smaller-scope

Conversation

@Scooletz
Copy link
Contributor

@Scooletz Scooletz commented Jul 16, 2025

A minor adjustement in UnreferenceDisposable so that it's smaller. UnreferenceDisposable had two references previously. One for the session, one for the time provider. Now it has one so whenever UnreferenceDisposable is created for scoping, the allocated object has one less reference to capture.

Motivation and Context

Going through the project and finding optimization opportunities.

How Has This Been Tested?

Locally, unit tests.

Breaking Changes

Nope

Types of changes

  • Optimization
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Loading
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.

3 participants