[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT and tail call recursion
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Wed, 6 Jul 2011 09:19:06 +0200
On Wed, Jul 6, 2011 at 09:01, Benjamin Segovia
<segovia.benjamin@gmail.com> wrote:
> does tail call recursion abort traces?
No. Tail calls are actually translated into native jump instructions.
As a consequence, tail recursion is as fast as native loops.
see http://lua-users.org/lists/lua-l/2010-02/msg00582.html
-- Pierre-Yves