Read large chunks instead of lines.

This commit is contained in:
batrick 2012-12-16 00:24:37 +00:00
parent 02369ec7d9
commit e8caacae85

View file

@ -224,7 +224,8 @@ local function loadscript (filename)
local function ld ()
-- header for scripts to allow setting the environment
yield [[return function (_ENV) return function (...)]];
for line in lines(filename, "*L") do
-- actual script
for line in lines(filename, 2^15) do
yield(line);
end
-- footer...