[erlang-questions] Mnesia and concurrency

Ulf Wiger ulf@REDACTED
Sat Dec 23 00:41:35 CET 2006


Den 2006-12-22 20:02:40 skrev Yariv Sadan <yarivvv@REDACTED>:

> So does that mean that ets is a loophole of sorts around the
> no-shared-memory rule that affects regular processes?
>
> Yariv

You could implement a perfectly ets-compatible version using
only processes and dict and gb_trees. It will only be something
like 30x slower than ets. The main reason is that the ets API
was not really written with the intention of making an efficient
erlang-based version. But semantically, ets doesn't really add
anything to Erlang that wasn't really there (except, if you
want to get technical, data storage that isn't garbage collected.)

BR,
Ulf W
-- 
Ulf Wiger



More information about the erlang-questions mailing list