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

Tony Arcieri tony@REDACTED
Mon Jul 13 01:37:49 CEST 2009


On Sat, Jul 11, 2009 at 3:34 AM, Joel Reymont <joelr1@REDACTED> wrote:

>
> On Jul 10, 2009, at 11:56 PM, Tony Arcieri wrote:
>
>  Have you tried persisting the processes?
>>
>
>
> What do you mean?


If this sending of 20k messages is a repeat affair, what if you had a
process per connection you could broadcast messages to that remained alive
for the duration of their TCP connections?

There would be overhead for process creation/teardown, but it would not
factor into the actual message transmission if the processes were
persistent.

Just a guess... as Jim Morris said a better profile of where your program is
spending its time would be helpful in diagnosing this problem.

-- 
Tony Arcieri
medioh.com


More information about the erlang-questions mailing list