Re: A proposal for faster userdata type checking
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: A proposal for faster userdata type checking
- From: "Taj Khattra" <taj.khattra@...>
- Date: 2008年2月28日 13:40:39 -0800
On Thu, Feb 28, 2008 at 7:57 AM, Chris <coderight@gmail.com> wrote:
> fine but luaL_checkudata adds a significant amount of overhead when
> making heavy use of calls that need to check userdata types (which is
> very important when creating "safe" APIs).
did you compare the performance of storing the metatable in the C function
environment instead of the registry?
i seem to recall mike pall posting some performance numbers comparing
the two approaches, but google is failing me at the moment.