lua-users home
lua-l archive

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


On Mon, Oct 12, 2015 at 9:52 PM, Soni L. <fakedme@gmail.com> wrote:
> Also the solution with wrapping load() and concatenating the strings
> manually... probably doesn't work when you're memory constrained.

Uh, you have enough memory for the bytecode of a chunk but not the
chunk's source? That sounds ridiculous. Even so, you have options
available: you could (1) compress the chunk by stripping
comments/whitespace and/or (2) zip compress the chunk received off the
wire and decompress in the reader.

-- 
Patrick Donnelly