[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: fast metamethods (was: lua hacking wondering)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 23 Jun 2004 09:41:10 -0300
> This patch allows an alternative and much more efficient way of
> defining these metamethods.
Have you measured the speed up in "real-like" code?
> By the way, the addition of the fastTM field in the Udata structure
> does not impose additional memory usage, since that structure had some
> wasted space available (due to alignment/union issues).
Are you sure? In my machine, the original structure had 16 bytes, the
new one has 20 (which would go to 24 with double alignment).
-- Roberto