[erlang-questions] Increase in heap size

Dmitry Belyaev rumata-estor@REDACTED
Fri Dec 18 19:40:38 CET 2009

What is the last statement in process_data/1?

If it looks like
process_data(Data) ->
then there is no tail-recursion.

On Fri, 2009-12-18 at 04:32 -0500, maruthavanan s wrote:
> Hi,
> I have a old code written by some one else, this is not a OTP,
> start()->
> receive
> {data,Data}->
>        process_data(Data);
> end,
> start().
> After I run my system this process heap size is increase to enourmous extent with bigger values of reductions.
> I could not understand reductions. Is this not a good programing practice? What would be the right way? what should I do to optimize this?
> Please help.
> Regards,
> Marutha

More information about the erlang-questions mailing list