[erlang-questions] Passing records vs Mnesia lookups

Amit Murthy amit.murthy@REDACTED
Mon Apr 27 07:36:45 CEST 2009

On Mon, Apr 27, 2009 at 2:28 AM, Ulf Wiger <ulf@REDACTED> 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
> local)
> and what type of storage the table has, if the table exists locally.
> Furthermore,
> 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.
> BR,
> Ulf W


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090427/668883c3/attachment.htm>

More information about the erlang-questions mailing list