[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Crunching Lua
- From: David Given <dg@...>
- Date: Thu, 3 Nov 2005 14:34:40 +0000
On Thursday 03 November 2005 11:59, Luiz Henrique de Figueiredo wrote:
> > 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.
Ah, thanks. I'll try it.
[...]
> Try luac -s.
I'd forgotten about that; the compiled out is now smaller than the source, but
not by much --- the source (after gzipping) is 5322 bytes, and the compressed
binary is 4805 bytes. I suspect that lstrip would do better.
--
+- David Given --McQ-+ "Opportunity is missed by most people because it's
| dg@cowlark.com | dressed in overalls and looks like work." ---
| (dg@tao-group.com) | Thomas Edison
+- www.cowlark.com --+
Attachment:
pgphUaprwwoPu.pgp
Description: PGP signature