[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua script file size problem
- From: "Lucas Teixeira" <loteixeira@...>
- Date: Thu, 16 Aug 2007 04:43:02 -0300
> Could you write it to file and call luaL_dofile?
> wes
Actually I tryed this and a unhandled exception is thrown by the application.
And one more time I have no idea what is causing this :)
But if still not working I will try this solution.
Lucas
On 8/16/07, Lucas Teixeira <loteixeira@gmail.com
> wrote:The application loads the whole
lua file. Then the application parses it.
Actually this test that I am doing is reading a file from my own computer, I just have a adaptor class that simulates a network transfer and load a local file.
The problem isnt network transfering, the test is reading a file from my computer, opening it using fopen storing all the content on a const char* buffer and passing it to lua.
Lucas
On 8/16/07, Edwin Eyan Moragas <haaktu@gmail.com> wrote:
On 8/16/07, Rob Kendrick <lua-l@nun.org.uk> 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?
>
parsing a lua lib file sounds like incremental parsing.
why not send the source one file at a time then the calling code
as the last?
--
no sig