<div dir="ltr">As I mentioned in a previous thread, the start time of escript and erl is to an high degree influenced by the all the modules that needs to be loaded. <div><br></div><div>This is also why +A0 has an impact.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I have to caution you to use +A0 though. Short-circuiting file operation by using no async-threads may be hazardous to your system. In most cases it is just fine to use it but this is very unpredictable. The schedulers can become very unhappy.</div><div class="gmail_extra"><br></div><div class="gmail_extra">We can change the default arguments to escript to mitigate this, for instance: <a href="https://github.com/psyeugenic/otp/compare/erlang:master...egil/default-escript-arguments">https://github.com/psyeugenic/otp/compare/erlang:master...egil/default-escript-arguments</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">As for something more rigorous: Dizzy had a proposal of creating escripts with a beam-binary with erlang-archives appended to it. I don't know how far he got but with this. Something like that might go a long way to speed things up.</div><div class="gmail_extra"><br></div><div class="gmail_extra">// Björn-Egil</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-05 16:08 GMT+01:00 Tristan Sloughter <span dir="ltr"><<a href="mailto:t@crashfast.com" target="_blank">t@crashfast.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I added all those arguments to rebar3's escript and seems to be a<br>
consistent speedup as expected, dropping from 0.6s to 0.3s for a run<br>
that doesn't do anything but print the help.<br>
<br>
Can't say that my eyes see much of a difference though ;). But no reason<br>
not to keep it in.<br>
<div class=""><div class="h5">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div></div>