Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function *diff* run indefinitely (4Mo files) #9

Open
Pythux opened this issue Aug 6, 2019 · 0 comments
Open

Function *diff* run indefinitely (4Mo files) #9

Pythux opened this issue Aug 6, 2019 · 0 comments

Comments

@Pythux
Copy link

Pythux commented Aug 6, 2019

def read_data(path):
     fi = open(path, 'rb')
     data = fi.read()
     fi.close()
     return data

a = read_data("A")
b = read_data("B")

assert len(a) == 4202496
assert len(b) == 4202496

import bsdiff4
c = bsdiff4.diff(a, b)  # run indefinitely

file_A_and_B.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant