Bug#909122: diffoscope: MemoryError when comparing big ISO images

Marek Marczykowski-Górecki marmarek at invisiblethingslab.com
Tue Sep 18 20:00:11 BST 2018

On Tue, Sep 18, 2018 at 06:39:28PM +0000, Daniel Shahaf wrote:
> Slurping the file to a string object is an antipattern.  Instead of
> using f.read() to create a 4.5GB string, it would be better to use
> json.load(f) to read the file incrementally.  That should raise an
> exception rather quickly.

That may be even better! Expect MR in a moment. Should I include some
magic text in commit message to link it with this bug?

Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-builds/attachments/20180918/73eb4602/attachment.sig>

More information about the Reproducible-builds mailing list