<div class="" style="font-family:UICTFontTextStyleBody;font-size:17px">Hi everyone,</div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px"><br class=""></div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px">I’ve an escript which connects to a TargetNode using this code (snippet from Basho's nodetool):</div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px"><a href="https://github.com/basho/rebar/blob/develop/priv/templates/simplenode.nodetool#L34-L45" class="">https://github.com/basho/rebar/blob/develop/priv/templates/simplenode.nodetool#L34-L45</a></div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px"><br class=""></div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px"><div class="">    %% See if the node is currently running  -- if it's not, we'll bail</div><div class="">    case {net_kernel:hidden_connect_node(TargetNode),</div><div class="">          net_adm:ping(TargetNode)} of</div><div class="">        {true, pong} -></div><div class="">            ok;</div><div class="">        {false,pong} -></div><div class="">            io:format("Failed to connect to node ~p .\n", [TargetNode]),</div><div class="">            halt(1);</div><div class="">        {_, pang} -></div><div class="">            io:format("Node ~p not responding to pings.\n", [TargetNode]),</div><div class="">            halt(1)</div><div class="">    end,</div></div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px"><br class=""></div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px">It works perfectly well, but it’s kind of slow. I mean the connection is a bit slow to be established even it the TargetNode is running on the same host.</div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px">Can we make it faster? Is there another way to connect to a TargetNoode without using net_kernel module?</div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px"><br class=""></div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px">Finally, what kind of escript's options can make the startup faster in general?</div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px">I found this one:</div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px">-compile(native).</div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px"><br class=""></div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px">Thank you</div><div class="" style="font-family:UICTFontTextStyleBody;font-size:17px">/Frank</div>