[erlang-questions] Tail recursion and memory leak

Christian S chsu79@REDACTED
Fri Mar 16 12:52:28 CET 2007

Is your cpu going to 100% as well? The code you describe doesnt have
any case where it waits, it will just loop and loop sending packets.
Your secondary send_msg seem to cons memory a bit faster than the
first one. But they both will likely reach the same memory usage if
they run long time enough.

You dont need to call lists:append, gen_udp:send will behave as if it
calls erlang:iolist_to_binary/1. In fact, we call them iolists because
most io functions behaves this way.

More information about the erlang-questions mailing list