skynet 实际测试 10万个数据
假设数据格式如下
{
xxxx1 = 1,
xxxx2 = 1,
xxxx3 = 1,
xxxx4 = 1,
xxxx5 = 1,
xxxx6 = 1,
xxxx7 = 1,
xxxx8 = 1,
xxxx9 = 1,
uuid = uuid(),
}
多次调用gc 最后没有内存减少 大小如下
:01000010 17687.29 Kb (snlua service_equip 21001)
:01000011 52841.62 Kb (snlua service_equip 21001)
测试代码
--[[
desc:装备服务
auth:Caorl Luo
]]
---@class service_sole:service_super @唯一服务
local this = require("service_super")
local test = {}
---启动
function this.start(tag, count)
local