[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Drawing the line between speed and simplicity/elegance
- From: Coda Highland <chighland@...>
- Date: Sat, 9 May 2015 11:22:05 -0700
On Sat, May 9, 2015 at 10:01 AM, Roberto Ierusalimschy
>> Using the C API will make LuaJIT's performance bottom out. If you're
>> worried about performance across VMs, stick to pure Lua.
> That is not a valid advice across VMs. C code is much faster than
> (non-JIT) Lua code. So, not using the C API will hurt Lua performance.
> -- Roberto
Well, certainly so, of course. It's more of a question of "good
enough" -- if you're not going to maintain two versions of the code
for the two VMs, and you're satisfied with the performance in PUC-Lua,
then pure Lua code is fine.