[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: bigint lua port
- From: Ted Unangst <ted.unangst@...>
- Date: Thu, 22 Apr 2010 14:50:33 -0400
On Thu, Apr 22, 2010 at 2:25 PM, Valerio Schiavoni
<valerio.schiavoni@gmail.com> wrote:
> On Thu, Apr 22, 2010 at 3:07 PM, Ted Unangst <ted.unangst@gmail.com> wrote:
>>
>> I suspect if you are using a lot of bigints, the lua version plus
>> luajit may be faster than the overhead of calling into C.
>
> well no. I've measured, and the C version was way,way faster than Lua
> version + LuaJIT.
> I use it to implement RSA encryption/decryption (the powmod function is the
> heavy one).
Maybe I should have included the optimized powmod function. I left out
everything but basic ops. Something else for the next version...