[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Whetstone and Dhrystone on Lua
- From: KHMan <keinhong@...>
- Date: Tue, 11 Mar 2008 00:02:10 +0800
Evan DeMond wrote:
> As I'm sure someone is going to jump in here and say at some point:
> Use local variables. Global variable lookups have a slight overhead that
> adds up into a greater performance penalty as you hit them over and
> over, especially in loops. Your benchmarks aren't really showing what
> Lua can do if you're not using locals where they're needed.
This should help...
It should be said that Lua isn't meant for truly serious number
crunching. One would choose Lua for number crunching not for raw
performance reasons. People use Perl to crunch GBs of httpd log
data and spew out statistics. It can be a few times slower than a
C/C++ solution. No big deal, people would still use Perl. Same
By all means generate and optimize the benchmark results and study
the benchmark, but I hope the OP does not take it too seriously...
> On Mon, Mar 10, 2008 at 10:59 AM, Mister White <firstname.lastname@example.org
> <mailto:email@example.com>> wrote:
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia