[erlang-bugs] Enhancement to compiler-4.5.4 documentation

Bjorn Gustavsson bgustavsson@REDACTED
Sun Oct 5 14:00:46 CEST 2008


On Sun, Oct 5, 2008 at 10:49 AM, Edwin Fine
<erlang-questions_efine@REDACTED>wrote:

>
>
> My concern is that the extra separate function bodies take up unnecessary
> space, and if there are many functions included in many modules (as there
> are in my situation, where I have 5 inlined functions in an hrl file that
> gets included everywhere), it could create significant code bloat (say, 50
> modules and 4 unused but exported functions per module). Granted, this is
> only likely to happen if export_all is applied in the compilation of all
> modules. And granted, the expansion of the inlined code is likely to cause
> much more bloat than the extra unused functions.
>
> If you tell me this is not an issue, I will accept that. In any case, it
> wouldn't hurt to put this is the documentation, would it?
>

The section about inlining could be a little bit clearer. I'll change it to
explicitly mention that any exported function will be kept.

 --
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20081005/0d85de67/attachment.htm>


More information about the erlang-bugs mailing list