spin6lock / lua_table_copy_on_write

implement copy on write for lua table

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

不想拷贝大数据table的时候,利用CoW的原理,通过元表引用原来的数据。原来的数据有改动时,拷贝镜像到slave对象处(copy on write)如果自己有数据,也不会被原有数据table的改动所覆盖,看起来就像拷贝了一个新table

About

implement copy on write for lua table


Languages

Language:Lua 100.0%