[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Embedding Lua files into libraries
- From: Axel Kittenberger <axkibe@...>
- Date: Mon, 5 Dec 2011 17:41:09 +0100
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 <firstname.lastname@example.org> 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.