mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-08 14:28:21 +01:00
58096449c6
Implemented new distribution scheme. Select is now purely C. HTTP reimplemented seems faster dunno why. LTN12 functions that coroutines fail gracefully.
18 lines
275 B
Lua
18 lines
275 B
Lua
function load(s)
|
|
collectgarbage()
|
|
local a = gcinfo()
|
|
_G[s] = require(s)
|
|
collectgarbage()
|
|
local b = gcinfo()
|
|
print(s .. ":\t " .. (b-a) .. "k")
|
|
end
|
|
|
|
load("socket")
|
|
load("url")
|
|
load("ltn12")
|
|
load("mime")
|
|
load("tp")
|
|
load("smtp")
|
|
load("http")
|
|
load("ftp")
|