함수형 언어/Erlang

[TIP] Improving performance of concurrent program

manywaypark 2008. 9. 5. 18:24
ko:
성능을 향상 시키는 방법:
  1. 메모리 사용량을 낮게 유지한다.
  2. CPU 사용률을 높게 유지한다.
  3. 한계를 넘어서지 않는 한 많은 수의 worker 를 동작시킨다. (2번을 실제 적용하는 유용한 방법중의 하나).
  4. 실행 흐름을 동기화가 필요하지 않은 방향으로 설계한다 (spawn후에 잊어버리기 전략. 3번과 일맥상통).

en:
to improve performance of concurrent program:
  1. always keep small footprint of memory usage.
  2. high CPU utilization.
  3. run workers as many as possible (of course, under limit). one of good methods for #2.
  4. design program flow to avoid synchronization. use spawn and forget strategy if possible.

happy hackin'