[asterisk-dev] fast-ast2 ready to merge to trunk, is that OK?

Matthew Nicholson mnicholson at digium.com
Tue Nov 6 10:55:35 CST 2007

On Mon, 2007-11-05 at 19:47 -0700, Steve Murphy wrote:

> > > If the lua interface uses hashtabs for the contexts/priorities, then
> > > until they use the "trie" for the extens, the only set of tests to
> > > show a slowdown should be the set with varying number of extensions.
> > 
> > The lua interface uses lua 'tables' to hold contexts and extensions (the
> > table is lua's universal data structure).  Tables use hash tables for
> > lookups.  Currently the context lookup is done using the context name as
> > the lookup key, which should amount to a hash table lookup.  The
> > extension match is done by iterating through all available extensions in
> > order.
> > 
> > Judging by that your assessment should be correct.
> Verily! Will be using the GotoIf or Goto for flow of control?
> Seems like you could do the loop via lua native stuff and go faster.
> To what extent do you use the dialplan priority processing engine?

Goto and Gotoif do not work in pbx_lua unless you 'return' right after
them.  There is not much point in using them because you have real 'if'
statements and function calls to do jumps.  There are no priorities,
every extension matches on priority 1.  Extensions are lua functions and
execute as such.
Matthew Nicholson

More information about the asterisk-dev mailing list