[erlang-bugs] lists:delete on tmp supervisors

Evgeniy Khramtsov <>
Wed Apr 27 05:39:20 CEST 2011

25.04.2011 21:03, Evgeniy Khramtsov wrote:
> Temporary supervisors use lists to keep the children data, and, thus 
> are extremely slow when there are lots of children added/deleted. I've 
> noticed a huge message queue overload on stress tests with 
> current_function being lists:delete.
> Is it a bug or a feature? It seems like it was introduced recently, at 
> least the issue presents in R14B02.

A simple patch against the 'dev' branch is attached. If you are not 
convenient with sets, you can try gb_sets (since the former consumes a 
bit more memory).

Evgeniy Khramtsov, ProcessOne.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: supervisor-tmp-lists.patch
Type: text/x-diff
Size: 3093 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20110427/a0b2bb5e/attachment.bin>

More information about the erlang-bugs mailing list