GeezerVison is showing github.com — perf(redis): avoid serializing addresses during unregister by ReubenBond · Pull Request #10835 · dotnet/orleans
Conversation
ReubenBond
commented
Aug 26, 2026
•
edited by dotnet-policy-service
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Redis grain-directory unregister operations serialized the full GrainAddress even though the delete script only consumes its activation ID. This removes that unused serialization.
Rationale
Unregister remains activation-aware and preserves conflict handling while avoiding a JSON string allocation and serialization work on every successful call.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR optimizes the Redis grain-directory unregister path by removing an unnecessary JSON serialization of the full GrainAddress when the Redis delete script only needs the activation id, reducing per-call allocation and serialization overhead in the common success case.
Changes:
- Remove eager
JsonSerializer.Serialize(address) allocation during Unregister.
- Continue passing only
ActivationId into the Redis delete script while preserving conflict handling behavior.
Show a summary per file
| File |
Description |
| src/Redis/Orleans.GrainDirectory.Redis/RedisGrainDirectory.cs |
Removes unused address serialization in Unregister and keeps the script invocation based on activation id. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Code coverage
77.61% line coverage - 97,578 / 125,721 lines
Coverage details
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 28, 2026
This was referenced Sep 4, 2026
This was referenced Sep 9, 2026
This was referenced Sep 16, 2026
This was referenced Sep 23, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|