lua-users home
lua-l archive

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

Leo Razoumov wrote:
Do you have a quantitative evidence of this?
All my anecdotal experience is to the contrary of your statement.
Modern CPUs like x86 have very fast FPUs so that arithmetic operations
with double is very fast (one cycle or sometimes several ops/cycle
with parallel pipelines). In fact, floating point arithmetic is faster
that Lua VM operations. I doubt that changing lua_Number from 'double'
to 'int' will boost up Lua code execution speed.

You're right, of course. I assumed John is working on a FPU-less CPU (as a I do).