2023年3月7日

Lua 垃圾回收

摘要: Lua 内存垃圾回收,是自动完成的,不需要人工处理。 垃圾回收有两种模式: 1、增量式(Incremental) 有三个参数 1)、garbage-collector pause, 什么时间执行,比上次回收后内增加的比例 默认200% 最大1000% 2)、garbage-collector ste 阅读全文

posted @ 2023-03-07 15:30 hztech 阅读(256) 评论(0) 推荐(0) 编辑

Lua 学习-10 元表metaTable

摘要: 2.4 – Metatables and Metamethods Every value in Lua can have a metatable. This metatable is an ordinary Lua table that defines the behavior of the ori 阅读全文

posted @ 2023-03-07 13:34 hztech 阅读(21) 评论(0) 推荐(0) 编辑

导航