[erlang-questions] Passing records vs Mnesia lookups
Mon Apr 27 07:36:45 CEST 2009
On Mon, Apr 27, 2009 at 2:28 AM, Ulf Wiger <> wrote:
> Reads from ets are also copying, so you end up copying in either case.
> However, even mnesia:dirty_read() results in more ETS reads than just the
> object. Mnesia has to find out where to read the object (it may not be
> and what type of storage the table has, if the table exists locally.
> ETS reads are protected by mutexes (on SMP). So is message passing, of
> course, but the probability of lock contention is very much smaller with
> message passing.
> Ulf W
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions