[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Proposal: lua_pushfoo() should return 1
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 2 Sep 2014 08:57:13 -0300
> [...]
>
> where if lua_pushx would return 1, the then possible source code
>
> return lua_pushx (L, xxx)
>
> often times would be compiled to just:
>
> jump lua_pushx
>
>
> So there would actually be a small technical benefit.
If you really want to go to this level (which I think is pure
speculation), you should consider also the cost of all useless
"mov $1, %eax" inside those 'lua_pushinteger' not used in returns
(paid by all compilers) :-)
-- Roberto