[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Upvalue efficiency [was: Fast metamethods for Userdata types]
- From: Sean Conner <sean@...>
- Date: Wed, 8 Apr 2015 11:48:39 -0400
It was thus said that the Great David Favro once stated:
>
> I sometimes superstitiously think that there may be some "advantage" in
> creating a function that has no external references rather than one which
> requires separate closures, but I honestly have no idea if this is true.
I can think of two advantages:
1) it's easier to serialize such a function, as it relies on no
external data.
2) it's easier to test such a function as it relies on no external
data.
-spc