[erlang-questions] Anonymous functions or callback module - Performance
Álvaro
avalormaquedano@REDACTED
Thu Nov 29 11:42:36 CET 2012
Thanks a lot for your answers.
> Just beware of reloading the module they are defined in. After the
> second reload, they'll be purged anyway and calling them will fail.
>
I didn't know that the second reload purges the fun definitions. That
forces me to make further changes to my implementation, as module reloading
is to be expected with some frequence and the time lapse between the
execution of the first and last functions can be big enough to allow two or
more reloads.
Cheers,
Álvaro
> I'm not sure that I understand your problem correctly, but if you
> must gather a collection of functions to call in a pipeline, and you
>
>>
>> want to ensure that they all "stick together" for each use of the
> pipeline, even during arbitrary code-reloads, then you probably must
> put them in a unique module or modules for each version of the
> pipeline. You'll have to manage the module name generation and
> cleaning up old modules manually though.
>
>
> Jeff Schultz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121129/a8a3ec64/attachment.htm>
More information about the erlang-questions
mailing list