[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Optimizing Lua memory access/usage...
- From: Edgar Toernig <froese@...>
- Date: Mon, 10 Sep 2001 03:06:31 +0200
Luiz Henrique de Figueiredo wrote:
> >Could the same be accomplished with a static character
> >buffer on the C stack and strcat()?
> Yes, it could and was done like that until recently.
> However, the static buffer implies a large stack consumption that generates
> problems in programs with many nested dofiles. Some people running Lua in
> small systems complained about this.
That would not happen any more in Lua 4.0. parse_file (which would have this
big buffer) is left before the chunk is executed.