Coder Social home page Coder Social logo

pyrdiff's Introduction

pyrdiff

Python rdiff/rsync implementation (for experimental/learning purposes only)

pyrdiff's People

Contributors

therealmik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ruslanec vps2fast

pyrdiff's Issues

Issues with Python 2.6.6

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!

Performance fix for delta generation

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.