-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add KV try get #688
Add KV try get #688
Conversation
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.
Looks good!
I'll give this a look tonight @mtmk |
Async await and Delegate state captures are very interesting. AFAIR for example, if you've got multiple anonymous delegates (e.x. |
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.
I'm OK with it, My biggest concern would be my comments about EnsureSuccess
and how to use, since that method would be exposed API.
The other stuff can be handled via future PR if needed, but hopefully is good food for thought for possible perf/mem improvements
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.
More comments
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.
Reviewed general cleanup, looks awesome!
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.
LGTM
KVBench.cs
:TryGet
is performing much better.the new
Get
(which is usingTryGet
) is slightly worst because of the additional async/await state machine I'm guessing.cc @srs-adamr @to11mtm