[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Advantages of Lua using 'floats' over Lua using 'doubles'
- From: David Jones <drj@...>
- Date: Tue, 4 Jul 2006 06:50:09 +0100
On 3 Jul 2006, at 20:09, Jose Marin wrote:
On modern hardware, are there any significant
reasons/advantages of to compile Lua using 'floats'
for numbers over Lua using 'doubles'?
Modern as in modern desktop / server hardware? No. In fact floats
may cause a slight penalty due to conversions in and out of double.
Depending on your application (and struct alignment) you _might_ get
better cache use from float.
Embedded processors, consoles, set tops, mobile phones, all of these
might be better using float.