[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Locking Table Member Additions
- From: Paige DePol <lual@...>
- Date: Wed, 18 Jun 2014 05:50:46 -0500
On Jun 17, 2014, at 9:27 PM, Sean Conner <firstname.lastname@example.org> wrote:
> Do note that the compiled Lua script may not necessarily be smaller than
> Lua source code. Also, I've found that compressed Lua scripts are smaller
> than compressed compiled Lua scripts (using zlib---it's not a hard library
> to use and there are Lua wrappers for it).
Do you have an example of a Lua script that results in a larger compiled file vs source file? I am curious to see how that could happen. I would think that having a script compile and be larger would be a fairly uncommon occurrence.
I can see how compressed source could be smaller than compressed compiled source, though on a restricted system that would just add additional memory and processing overhead for decompression. The idea was to skip parsing altogether and just load binary scripts, leaving the possibility of removing the parser from the library, which is a 35% reduction in the size of the Lua core according to Luiz.