|
An obvious and trivial example is a metatable that counts accesses to a table, but this would usually be used for debugging/profiling rather than in production; I've not been able to think of any other examples.
Making this assumption would allow a compiler to cache the results of table accesses within a scope, invalidating them over function calls but not table accesses.
----- Original Message ----- From: "Mark Hamburg" <mhamburg@adobe.com>
To: "Lua list" <lua@bazar2.conectiva.com.br> Sent: Friday, August 31, 2007 4:53 PM Subject: Re: Compiler Optimizations
* For almost everything else, the metatable semantics make optimization almost impossible. Mark