3 ms·
If you can manage your memory completely, then yes, you could obtain the same performance by applying some restrictions. There are some cool things erlang vm d
by viraptor 12y ago
If you can manage your memory completely, then yes, you could obtain the same performance by applying some restrictions.
There are some cool things erlang vm does:
- immutable values (so you don't have to worry about sharing and copying)
- per process heaps (so you don't have to worry about big stops on gc)
- adjustable heap pre-allocation (so you don't have to resize heaps once you know how much memory your processes need)
I don't think that depends on the compiler really. You couldn't patch python for example to do the same for you automatically. It's in the language limitations.
- fenollp 12y ago> manage your memory BEAM has a load of different memory allocators. Reading this [0] gives an idea of the piece of work the BEAM vm is. [0]: http://www.erlang-factory.com/static/upload/media/139454517145429lukaslarsson.pdf http://www.erlang-factory.com/static/upload/media/1394545171...