<br><div class="gmail_quote">On Mon, Apr 27, 2009 at 2:28 AM, Ulf Wiger <span dir="ltr"><<a href="mailto:ulf@wiger.net">ulf@wiger.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Reads from ets are also copying, so you end up copying in either case.<br>
However, even mnesia:dirty_read() results in more ETS reads than just the<br>
object. Mnesia has to find out where to read the object (it may not be local)<br>
and what type of storage the table has, if the table exists locally.<br>
Furthermore,<br>
ETS reads are protected by mutexes (on SMP). So is message passing, of<br>
course, but the probability of lock contention is very much smaller with<br>
message passing.<br>
<br>
<br>
BR,<br>
Ulf W<br>
</blockquote></div><br><br>Thanks. <br><br>

  Amit<br><br><br>