lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Mar 22, 2011 at 12:28 PM, liam mail <liam.list@googlemail.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.

steve d.