[erlang-questions] module preloading in embedded mode
Fri Jan 19 10:56:13 CET 2018
Ah! Even more.
I just realized that workflow does not seem to depend on the mode.
primLoad seems to be unconditionally processed, so I believe all modules in
the primLoads of whatever boot script is used are loaded into the BEAM
regardless of interactive/embedded.
In a release, you eager load all modules NOT because embedded mode is on,
but because the generated scripts lists them all in primLoads.
What embedded does is basically preventing the error handler from falling
back to the code server, here:
That's an aha! moment for me. Because some docs imply that embedded mode
means eager loading.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions