[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Condenseable?
- From: David Jones <drj@...>
- Date: Mon, 25 Aug 2003 12:23:47 +0000
In message <BB6EE26A.11CBAemail@example.com>, Ando Sonenblick writes:
> By the way, found out that
> if x == nil then
> Is pretty significantly slower than:
> if not x then
Watch out, because this isn't a generally correct transformation.
The two fragments have different meanings. They are different in
the case when x == false for example.
By the way, in my experience if one is optimising lua code at this sort of
level one has usually missed some richer vein of optimisation.