<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-01-05 23:21 GMT+01:00 Tuncer Ayaz <span dir="ltr"><<a href="mailto:tuncer.ayaz@gmail.com" target="_blank">tuncer.ayaz@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Jan 5, 2015 at 6:12 PM, Bjorn-Egil Dahlberg wrote:<br>
> As I mentioned in a previous thread, the start time of escript and<br>
> erl is to an high degree influenced by the all the modules that<br>
> needs to be loaded.<br>
<br>
</span>More modules, bigger modules (line info).<br>
<span class=""><br>
> This is also why +A0 has an impact.<br>
<br>
</span>Just to be clear, you aren't saying +A1 implies loading extra modules,<br>
are you?<br></blockquote><div><br></div><div><br></div><div>No extra modules.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> I have to caution you to use +A0 though. Short-circuiting file<br>
> operation by using no async-threads may be hazardous to your system.<br>
> In most cases it is just fine to use it but this is very<br>
> unpredictable. The schedulers can become very unhappy.<br>
><br>
> We can change the default arguments to escript to mitigate this, for<br>
> instance:<br>
</span>> erlang:master...egil/default-escript-arguments<br>
<br>
Isn't +sbtu already the default?<br></blockquote><div> </div><div><br></div><div>Yes.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> As for something more rigorous: Dizzy had a proposal of creating<br>
> escripts with a beam-binary with erlang-archives appended to it. I<br>
> don't know how far he got but with this. Something like that might<br>
> go a long way to speed things up.<br>
<br>
</span>Never heard of that. Care to elaborate?<br>
<br>
The escript archives we create currently are already a header followed<br>
by a zip archive, but IIRC concatenating beam files also works, though<br>
I never tried it and just recall the escript loader bits related to<br>
it.<br>
</blockquote></div><br></div><div class="gmail_extra">I talked to him recently. I think he dropped the project. If he sees this I hope he can elaborate on it.</div><div class="gmail_extra"><br></div><div class="gmail_extra">// Björn-Egil</div><div class="gmail_extra"><br></div></div>