[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Crunching Lua
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 3 Nov 2005 09:59:46 -0200
> The traditional thing to do with C in this case is to run the source
> through a cruncher; this will strip out comments and whitespace, and
> the really good ones will rename all your identifiers to be as short
> as possible.
My ltokens library has a lstrip tool which strips comments and whitespace,
but does not do renaming.
See also
http://lua-users.org/lists/lua-l/2005-02/msg00357.html
http://lua-users.org/lists/lua-l/2005-02/msg00395.html
http://lua-users.org/lists/lua-l/2005-02/msg00396.html
> To my surprise, running the script through luac makes things *bigger* ---
> presumably due to inefficient opcode encoding.
Try luac -s.
--lhf