| Joachim Durchholz 2007-08-21, 4:32 am |
| Paul Rubin schrieb:
>
> I wonder how well that holds up with multiple cpu's.
No problems with that. In Erlang, each process has its own heap and its
own GC, so having multiple CPUs doesn't affect the performance of single
threads.
Message passing might be slower because the message might have to be
written by one CPU and read by another, forcing the message data lower
into the cache hierarchy.
> I should read
> about Mnesia though, it may very well be better than the postgres
> madness that we're currently using even though we're coding in Python.
Mnesia is quite lightweight from what I have read.
It can be because it's optimized for keeping everything in memory.
Erlang is designed for perpetual processes, so the database need not be
efficient for those operations that make the data persistent.
Of course, Mnesia also eliminates the impedance mismatch. (The downside
is that using it with any other language than Erlang would reintroduce
the mismatch.)
Regards,
Jo
|