[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: Fri, 25 Jun 2004 10:08:54 -0300
My concern is not with the speedup of the operations per se, but their
effects on the whole program. For instance, if a program spends 4%
(is that realistic??) of its time instantiating classes, the seepup
of 141.28% in that operation translates to a speedup of ~2% for the
program.
Similarly, once you start doing real stuff inside and outside your
metamethods (instead of calling empty methods from a loop), the speedup
of 32.66% in method calls dilutes. But how much? (Again, how much
time a program spend performing metamethod invokations?)
-- Roberto