lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Fri, Apr 16, 2010 at 3:34 AM, Aurora <> 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