bsdiff4 icon indicating copy to clipboard operation
bsdiff4 copied to clipboard

Function *diff* run indefinitely (4Mo files)

Open Pythux opened this issue 6 years ago • 0 comments


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

Pythux avatar Aug 06 '19 14:08 Pythux