[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: The removal of function environments: An opportunity for optimization?
- From: Mark Hamburg <mark@...>
- Date: Sun, 23 May 2010 08:42:09 -0700
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.