[erlang-questions] : erlang:phash2(make_ref(), 1 bsl 32)

Per Melin <>
Fri May 9 09:53:03 CEST 2008


2008/5/9 Raimo Niskanen <>:
>
> > 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?

Not at all. It would just be more convenient to use make_ref(), which
I imagine exists for just this purpose. I never meant to say that this
was a real problem, I just wanted to point out a possible weakness in
phash/phash2.



More information about the erlang-questions mailing list