[erlang-questions] Why is gen_server:call/1 so slow (3s) when used with {global, Name}?

Sergey Samokhin <>
Sat Jun 20 19:26:31 CEST 2009


> I played around with your example a bit. If you put a 'timer:sleep(1)' just
> after 'global:sync()' then the problem goes away.. or at least it does for
> me.

Adding 'time:sleep(1)' has made init/1 so fast as I wanted it to be, thanks!

> The comments in the code suggests that some sort of exponential backoff
> should instead be done. So it's quite possible that this is a bug.

Should I forward this thread to erlang-bugs mailing list?

Sergey Samokhin

More information about the erlang-questions mailing list