Re: Loop efficiency
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Loop efficiency
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2012年12月20日 14:34:35 +0200
2012年12月20日 Geoff Leyland <geoff_leyland@fastmail.fm>:
> In order to get run times of the order of a second, unless you modified it,
> the test does ten times as many iterations for LuaJIT as it does for PUC Lua
> (see line 3).
>
> If I make your modification and run for the same number of iterations,
> I find that on my machine LuaJIT is slightly faster.
>
Ah, I missed that. Sorry, should have read the top two lines
more attentively.
I.e. LuaJIT reduces the loop overhead from tiny to negligible.