[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to load a huge file in ?
- From: Hao Wu <wuhao.wise@...>
- Date: Fri, 16 Apr 2010 03:40:31 -0400
On Fri, Apr 16, 2010 at 3:34 AM, Aurora <bravefly@gmail.com> wrote:
> Dear ,
>
> We load lua file in memory, then call lua_loadbuffer to load it Before.
> I found a very huge lua file that I can't alloc mem to hold it.
> Can I use small memory to load it one piece and one piece using lua_loadbuffer ?
My suggestion would be rewrite reader stream.
check out lua_load/lua_Reader
In the other side, why not modulate your functions?
>
>
> ---------------------------------
> Aurora 2010-04-16
>
>