[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The removal of function environments: An opportunity for optimization?
- From: Jonathan Castello <twisolar@...>
- Date: Sun, 23 May 2010 11:24:53 -0700
On Sun, May 23, 2010 at 8:42 AM, Mark Hamburg <mark@grubmah.com> wrote:
> Does this mean that the compiler could now detect functions without upvalue references and treat them as constants so that we don't reconstruct them over and over again? (The presence of function environments stood in the way of doing so in the past.)
>
> Today, one could lift such definitions out of the code and explicitly store them in local variables, but doing so can break the flow of the code for reading.
>
> Mark
>
>
Correct me if I'm wrong, but isn't that what light C functions are?
http://www.corsix.org/content/look-lua-52-work3 -- point 6.
~Jonathan