ETS: update list value without race condition
Sverker Eriksson
sverker.eriksson@REDACTED
Thu Apr 22 16:37:33 CEST 2021
Correct.
If the key is fully bound in the match spec no table traversal is needed.
/Sverker
From: Frank Muller <frank.muller.erl@REDACTED>
Sent: den 22 april 2021 14:37
To: Sverker Eriksson <sverker.eriksson@REDACTED>
Cc: Erlang-Questions Questions <erlang-questions@REDACTED>
Subject: Re: ETS: update list value without race condition
Old contains the key already.
Maybe in this case there no full table scan :-)
Sverker, could you please confirm?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210422/08c093c6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5509 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210422/08c093c6/attachment.bin>
More information about the erlang-questions
mailing list