I keep hearing that lua is lighter weight / more scalable than javascript. I'd love to see some data that shows how big the difference really is. I could port all my scripts from javascript to lua, but it would require a lot of overhead (me learning lua + actually porting the scripts). I want to know how much benefit there really is to that.<br>
<br>--Stephen<br><br><div class="gmail_quote">On Thu, May 14, 2009 at 10:01 AM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">The script has a javascript interpreter allocated sitting there eating up ram for no reason... so to scale better its wise to exit the script and do your conference.<div><br></div><div>Lua is lighter weight but still having the interpreter hang around when not needed isn't wise.<br>
<font color="#888888"><div><br></div><div>/b</div></font><div><div class="im"><br><div><div>On May 14, 2009, at 11:32 AM, Mike Fedyk wrote:</div><br><blockquote type="cite"><span style="color: rgb(0, 0, 0);">Why is initiating a conference from a dial plan entry better than<br>
directly from an internal script? Is there a page that details what<br>is and isn't script abuse?<br><br>On 5/5/09, Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>> wrote:<br>
<blockquote type="cite">You should rule out the network problems first, which sound more likely.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">you can reduce the overuse of JS if you transfer the call to a regular<br>
</blockquote><blockquote type="cite">extension with a dynamic regex.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">session.execute("transfer", "conf-xyz");<br></blockquote>
<blockquote type="cite"><br></blockquote><blockquote type="cite">then make a regex in your xml dialplan to pick up ^conf-(.*) and execute<br></blockquote><blockquote type="cite">conference $1</blockquote></span></blockquote>
</div><br></div><div class="im"><div> <span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<div>Brian West</div><div><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></div><div><br></div></div></span>-- Meet us at ClueCon! <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>
<div><br></div></div></span><br></div></span><br> </div><br></div></div></div></div><br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>