[erlang-questions] 20k messages in 4s but want to go faster!

Joel Reymont <>
Sat Jul 11 17:51:16 CEST 2009


On Jul 10, 2009, at 8:40 PM, andrew mmc wrote:

> Yes, just in half each time.  If the input list is of length 1, send  
> the message, otherwise spawn two processes for each half of the list.


I tried this by keeping two separate ets tables and alternatively  
inserting into them.

I spawned two processes to broadcast, each iterating over their  
respective ets table.

I did not see a performance improvement, maybe this has to do with  
running on a 1-core virtual CPU.

I will try to send timestamps around next on the assumption that my  
timing calculations are flawed.

	Thanks, Joel

---
Mac hacker with a performance bent
http://www.linkedin.com/in/joelreymont



More information about the erlang-questions mailing list