Good News for Erlang Programmers
Here’s the good news: your Erlang program might run n times faster on an n-core processor—without any changes to the program.
But you have to follow a simple set of rules.
If you want your application to run faster on a multicore CPU, you’ll have to make sure that it has lots of processes, that the processes don’t interfere with each other, and that you have no sequential bottlenecks in your program.
If instead you’ve written your code in one great monolithic clump
of sequential code and never used spawn to create a
parallel process, your program might not go any faster.
Don’t despair. Even if your program started as a gigantic sequential program, several simple changes to the program will parallelize it. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access