#rsync #pi #sync #data #difference #construct #calculate

nightly pi_rsync

Data synchronization can calculate the difference of data and construct new data according to the difference and old data

1 unstable release

0.1.0 Mar 1, 2022

#19 in #rsync

MIT/Apache

10KB
180 lines

数据同步,可以计算数据的差异,并根据差异和旧数据构建出新的数据


lib.rs:

数据同步,可以计算数据的差异,并根据差异和旧数据构建出新的数据 算法原理参考http://blog.csdn.net/russell_tao/article/details/7240661

本库使用crc32代替MD5 在上述的连接中,客户端与服务器的数据同步过程可以看做: 客户端根据当前数据计算crc32+校验和并发送给服务器 -> 服务器根据该crc32+校验和,与自身数据比较,得到数据差异 -> 服务器发送数据差异给客户端 -> 客户端收到差异,根据差异和自身数据还原出服务器上的最新数据。

Dependencies

~91KB