[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaJIT with vectors
- From: David Kastrup <dak@...>
- Date: Thu, 18 Nov 2010 14:17:18 +0100
Alex Queiroz <email@example.com> writes:
> On Thu, Nov 18, 2010 at 8:40 AM, Mike Pall <firstname.lastname@example.org> wrote:
>> have now switched to the 8 byte NaN-tagging value model that's
>> used by LuaJIT. Esp. Mozilla made extensive measurements before
>> going for such a major change of their code base. Having a compact
>> value representation pays off big time for dynamic languages.]
> Sometimes I wonder how plain Lua can be so fast sticking only to
> standard ANSI C. That's an achievement. For instance, the VM dispatch
> uses the C switch statement, which is known to be slow.
Huh? Why would it be "known to be slow"? Have you taken a look at the
kind of code it generates?