[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Native Complex numbers for LuaJIT-2 [was Re: Benchmark shootoutshows LuaJIT 2.0]
- From: "Alex Davies" <alex.mania@...>
- Date: Mon, 2 Nov 2009 22:39:23 +0800
On Mon, Nov 02, 2009 at 09:15:03AM -0500, Leo Razoumov wrote:
Also I am a bit worried about function dispatch. Adding two doubles is
a native Lua opcode and it does not go through the trouble of
metamethods. Using __add, __mul, etc metamethods dispatch for complex
numbers is slow. Could it be avoided?
Well you could code the metamethods in Lua and have LuaJit inline them.