lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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...