Diffing and patching for Lua tables

$ luarocks install ltdiff

LuaTableDiff is a Lua snippet that allows to create diffs recursively
between two Lua tables. This diff can then again be applied to the
original unmodified table to reconstruct the modified table.

This could be used to reduce the amount of data needed to be transmitted
in order to synchronize two tables. Beware that there is some overhead
especially for nested tables with only few entries.


1.0-12 years ago51 downloads


lua >= 5.1