4 ms·
The rsync algorithm is pretty cool. I implemented it in C# a couple of years ago: https://github.com/zmj/rsync-delta https://github.com/zmj/rsync-delta
by zmj 5y ago
The rsync algorithm is pretty cool. I implemented it in C# a couple of years ago: https://github.com/zmj/rsync-delta https://github.com/zmj/rsync-delta
- cshipley 5y agoDoes this only work with files or can any source be used as long as it is a Stream? Basically, I'd love to have something like this for arbitrary data, not just files. Also, looks like the README has a broken link: https://librsync.github.io/rdiff.html https://librsync.github.io/rdiff.html
- zmj 5y agoYep, Streams or Pipes for IO. No seeking, forward-only reads - using this with network in/out was my goal. Thanks for pointing out the broken link. Looks like it's here now: https://librsync.github.io/page_rdiff.html https://librsync.github.io/page_rdiff.html