[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua script file size problem
- From: "Wesley Smith" <wesley.hoke@...>
- Date: Thu, 16 Aug 2007 00:38:43 -0700
Sure it's a hack. You could partition the file so that it doesn't
change the meaning of anything and run loadstring on the chunks. I'm
not sure how you could figure out where to chop it though.
On 8/16/07, Rob Kendrick <email@example.com> wrote:
> Wesley Smith top-posted:
> > Could you write it to file and call luaL_dofile?
> This strikes me as an inelegant hack, if the data's coming over the network.
> Does the Lua API support incremental parsing, such that you can keep
> calling a function to pump more data in, and then signal the end?