lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> 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

Such a token filter could be built into luac but not your release Lua core,
if you can release precompiled code.