[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua newbie question: is OO in lua too slow?
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 22 Mar 2011 13:19:44 +0200
On Tue, Mar 22, 2011 at 12:28 PM, liam mail <email@example.com> wrote:
> which matches your expectations. In these situations speed should be a
> consideration from the start and not an after thought.
But these situations are not as common as people think; it's still
best to measure the hot spots.
If you have consistently used 'obj:method(args)' then you can later
change the implementation without breaking too much.
Also, test with LuaJIT, since it is an optimizing JIT compiler and
already knows a few tricks, like hoisting a method out of a loop.