[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Executing a script multiple times
- From: "Alex Davies" <alex.mania@...>
- Date: Tue, 30 Sep 2008 02:15:31 +0800
Matthew Paul Del Buono wrote:
That being said, recompilation is only as expensive if it needs to be.
Code first, profile and optimize after. I wouldn't recommend it, but
recompiling is certainly a valid option if it's not too expensive for your
needs.
I respectfully disagree on this note. lua_pushvalue isn't an optimization in
this case, but moreso correct practice. Imo, to recompile it each time
violates that least astonishment law, along with wasting time and memory.
So I believe the only-optimize-bottlenecks doesn't apply. Still, probably
debateable. :)
- Alex