mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
* refactor!: create monorepo * chore: prepare release, set up workflows * refactor: rename `modules` to `src` * docs: add docs for all packages * refactor: rename root project file * chore: bump deps * build: rename `lint`, add `pack` script * revert: delete pack script This will not be useful for development.
12 lines
240 B
Text
12 lines
240 B
Text
--[=[
|
|
Trigger a garbage collection cycle by allocating a large amount of junk memory
|
|
and then waiting for the next frame.
|
|
]=]
|
|
local function collect()
|
|
for _ = 1, 1e4 do
|
|
local _ = table.create(1e3)
|
|
end
|
|
task.wait()
|
|
end
|
|
|
|
return collect
|