You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
官方编译xlua.dll是什么环境,我自己编译的dll性能差的很大。
这是测试代码
local t = {}
for i = 1, 1000000, 1 do
table.insert(t, math.random(1, 100000))
end
local a = os.clock()
table.sort(t, function (a, b)
return a < b
end)
log("test lua sort ------------------------------------------------- " .. os.clock()-a)
local a = os.clock()
for i = 1, 1000000, 1 do
load("function() return 1 < 2 end")
end
log("test lua load ------------------------------------------------- " .. os.clock()-a)
The text was updated successfully, but these errors were encountered:
官方编译xlua.dll是什么环境,我自己编译的dll性能差的很大。
这是测试代码
local t = {}
for i = 1, 1000000, 1 do
table.insert(t, math.random(1, 100000))
end
local a = os.clock()
table.sort(t, function (a, b)
return a < b
end)
log("test lua sort ------------------------------------------------- " .. os.clock()-a)
The text was updated successfully, but these errors were encountered: