[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: alternative udata checking
- From: Gé Weijers <ge@...>
- Date: Fri, 2 Dec 2011 09:31:31 -0800
Would binding the metatable as an upvalue to the methods of a 'class' not be faster? You could skip the table lookup altogether, just get the metatable from argument 1 and compare it to the upvalue to determine 'class' membership.