[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT with vectors
- From: David Kastrup <dak@...>
- Date: Thu, 18 Nov 2010 14:17:18 +0100
Alex Queiroz <asandroq@gmail.com> writes:
> On Thu, Nov 18, 2010 at 8:40 AM, Mike Pall <mikelu-1011@mike.de> wrote:
>>
>> [Case in point: 2 of the 3 leading open source JavaScript engines
>> 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?
--
David Kastrup