This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
collectgarbage("setpause", 120) -- 内存增大 1 倍(200/100)时自动释放一次内存 (200 是默认值)
collectgarbage("setstepmul", 1000) -- 收集器单步收集的速度相对于内存分配速度的倍率,设置 200 的倍率等于 2 倍(200/100)。(200 是默认值)
class = require("oop.middleclass")
handler = require("oop.handler") -- 支持 function 和 对象内部 handler 不过后者热更会更友好
gEnv = require("env")
if gEnv.DEBUG then
require("tracing.skynet")
require("swt.debug")
end