lua-users home
lua-l archive

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


It will double the memory footprint however. Unless you unmap the
compressed source after you uncompressed it. If declared constant an
in its own memory page the Linux kernel will unload it after a while,
when not used and it needs memory. (since it can always reload it
again from disc binary)

On Mon, Dec 5, 2011 at 5:35 PM, Patrick Rapin <toupie300@gmail.com> wrote:
>>  Are there other tools?
>
> For all my Lua applications, I compress embedded sources using ZLib
> (or BZip2 in one of them).
> At application start, the code is uncompressed and fit to luaL_loadstring.
> This permits to decrease the size of the executable and hide
> (slightly) the source code.
>