Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle edge case for dictionary lookup. #44

Merged
merged 1 commit into from Feb 12, 2024

Conversation

to11mtm
Copy link
Member

@to11mtm to11mtm commented Feb 12, 2024

Changes

Handles an edge case in Int Lookup dictionary for multiple actorsystems that may receive types in largely different orders.

//Otherwise, we check whether we are there
// (if a competitor added it on resize, we see via fence)
// and if not, add ours.
if (_formatters.Length <= i)
while (_formatters.Length <= i)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an edge case, so I think it's OK to have the pain of multiple realloc and copies for now, we can create separate issue to resolve if desired. It should only come up if something along the lines of multiple actorsystems start and deserialize in the wrong order.

@to11mtm to11mtm merged commit d086016 into akkadotnet:dev Feb 12, 2024
2 checks passed
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.

None yet

1 participant