Python rdiff/rsync implementation (for experimental/learning purposes only)
therealmik / pyrdiff Goto Github PK
View Code? Open in Web Editor NEWPython rdiff/rsync implementation (for experimental/learning purposes only)
License: MIT License
Python rdiff/rsync implementation (for experimental/learning purposes only)
License: MIT License
Hello!
I read your rdiff implementation in pure Python and it's amazing! It's really awesome work! Did you execute performance tests? I do it with original rdiff and they are really worst - librsync/librsync#6 :(
Could you add compatibility with Python 2.6?
python pyrdiff.py
File "pyrdiff.py", line 344
print("Usage: {0:s} <command> [options ...]".format(sys.argv[0]), file=sys.stderr)
^
SyntaxError: invalid syntax
I fix this lines but scripts still not working:
python pyrdiff.py signature /vz/private/1202/root.hdd/root.hdd /tmp/result.signature
Traceback (most recent call last):
File "pyrdiff.py", line 399, in <module>
main()
File "pyrdiff.py", line 375, in main
Signatures.from_basis_file(basisfd).write(sigfd)
File "pyrdiff.py", line 184, in write
write_int(fd, RS_SIG_MAGIC, 4)
File "pyrdiff.py", line 142, in write_int
buf = i.to_bytes(nbytes, 'big')
AttributeError: 'int' object has no attribute 'to_bytes'
Thank you!
Hello!
I plans to test delta generation performance but found this in your code:
268: buf = changedfd.read() # Just read the whole damn file into memory
Could you fix this code to real file reading instead putting whole file to memory?
Thank you so much :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.