[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Minimizing memory consumption
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 30 May 2017 17:11:15 -0300
> 2. Are there particularly expensive parts of Lua in terms of code size
> that are possible to avoid? For example, it's probably reasonable not to
> support compilation of plaintext Lua code to bytecode on the device and
> instead only run load pre-compiled bytecode, which I can imagine
> reducing code size of the runtime significantly, however, it doesn't
> seem trivial to remove just the ascii parser while keeping the bytecode
> parser.
The asccii parser and the bytecode loader are completely separated.
It should be easy to remove the modules lparser/llex/lcode adding
small stubs for a few of their functions.
-- Roberto