[erlang-questions] : erlang:phash2(make_ref(), 1 bsl 32)
Raimo Niskanen
raimo+erlang-questions@REDACTED
Fri May 9 08:45:33 CEST 2008
On Thu, May 08, 2008 at 06:20:18PM -0700, Matthew Dempsky wrote:
> 2008/5/8 Per Melin <per.melin@REDACTED>:
> > You're right. But for what I need in this particular case it's perfect. It
> > only has to be unique per node, and only a few million times. I could even
> > use a counter, but then I'd have to have a process on each node just to own
> > the counter.
>
> You can create a public ets table and use ets:update_counter to
> atomically update it.
That is much faster than a server, but you still need a process to
own the ets table. Is that really a problem?
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
--
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list