Skip to content

perf(server): remove locks from thread-local schema caches - #1544

Draft
nuzzles wants to merge 1 commit into
modelcontextprotocol:mainfrom
nuzzles:simbleau/schema-cache-refcell
Draft

nuzzles wants to merge 1 commit into
modelcontextprotocol:mainfrom
nuzzles:simbleau/schema-cache-refcell

Conversation

@nuzzles

@nuzzles nuzzles commented Dec 1, 2026

Copy link
Copy Markdown
Member

The schema caches are thread-local. Use RefCell for their maps and release each borrow before generating a schema.

All 26 existing schema tests passed locally, and formatting checks passed.

@github-actions github-actions Bot added T-core Core library changes T-handler Handler implementation changes labels Dec 1, 2026
@github-actions
github-actions Bot requested a review from connor4312 December 1, 2026 21:00
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

@connor4312 is on triage rotation this week and is the reviewer for this one.

Labels come from the PR labeler. Please review the change.

Automated triage. Labels are a first pass and the assigned maintainer has the final say.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-core Core library changes T-handler Handler implementation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant