[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [Ann] ltdiff - diffing and patching for Lua tables
- From: Martin Felis <martin@...>
- Date: Sat, 11 Oct 2014 14:32:41 +0200
ltdiff (Lua Table Diff) 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.
Also when doing version control of data stored in Lua files this can be
handy to see what has changed.
It is published under the MIT license and a rock can be found at
https://rocks.moonscript.org/modules/fysx/ltdiff
Homepage:
https://github.com/martinfelis/luatablediff
Cheers,
Martin