lua-users home
lua-l archive

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


> > function myloadfile(filename, env)
> >   return load(io.lines(filename, '*L'), filename, 't', env)
> > end
> 
> Hmm, I expect that's not very efficient for extremely large files
> though... (even read"*a" is horrible for extremely large files!)

  return load(io.lines(filename, 2^12), filename, 't', env)

seems reasonable.

-- Roberto