[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is it possible to disable function arguments evaluation?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 30 Jun 2011 08:45:12 -0300
> In release mode, I assign the print to:
> function dumb_print() end
> to hide the logs.
>
> But the arguments for print are still evaluated, is it possible
> to avoid this overhead?
You could use a token filter like the one that remove asserts that I posted
in http://lua-users.org/lists/lua-l/2007-05/msg00176.html
Such a token filter could be built into luac but not your release Lua core,
if you can release precompiled code.