Replies: 1 comment 2 replies
-
The RMW operation is designed exactly for this class of conditional updates, and it should indeed be optimal in performance, i.e., no work is done that could have been avoided with a more direct NeedInitialUpdate => true |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is possible to implement atomic inserts using RMW but it is not easy to use and is not most efficient.
Would it be possible to implement an Insert method which does insert only if there isn't any.
Method can be:
bool TryInsert(key, value)
Beta Was this translation helpful? Give feedback.
All reactions