[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How fast is LuaJIT supposed to be?
- From: Alexander Gladysh <agladysh@...>
- Date: Fri, 21 Jan 2011 22:10:46 +0300
On Fri, Jan 21, 2011 at 22:08, Steve Litt <email@example.com> wrote:
> On Friday 21 January 2011 03:48:02 Axel Kittenberger wrote:
>> Ah, a sieve of eratosthenes (there are various ways to get primes). I
>> suppose you will find a considerable perfomance increase (native and
>> jit) if you use "candidate" as a local variable you pass as argument
>> and return value to find_next_candidate() instead of storing it as
>> "candidate" key in the prime array.
> Is table lookup really more expensive than passing in as an arg and passing
> back as a return? Ugh!
Try LJ2, you will think about these implementation details no longer. :-)