mirror of
https://github.com/kikito/beholder.lua.git
synced 2024-12-16 00:34:21 +00:00
improved memory usage with groups
This commit is contained in:
parent
9cea9e9c1e
commit
069f5e8bd2
@ -103,7 +103,7 @@ local currentGroupId = nil
|
||||
|
||||
local function addIdToCurrentGroup(id)
|
||||
if currentGroupId then
|
||||
groups[currentGroupId] = groups[currentGroupId] or {}
|
||||
groups[currentGroupId] = groups[currentGroupId] or setmetatable({}, {__mode="k"})
|
||||
local group = groups[currentGroupId]
|
||||
group[#group + 1] = id
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user