[Reproducible-builds] Bug#808120: Bug#808120: diffoscope: Should use less memory

Jérémy Bobbio lunar at debian.org
Tue Dec 22 17:21:19 UTC 2015


Control: tag -1 + pending

Mike Hommey:
>    * What was the outcome of this action?
> 
> A 533KB HTML file that, considering its size, doesn't contain much differences.
> Yet, while processing this, the diffoscope process (not its children readelf,
> objdump or diff processes) sucked more than 4GB of memory. That tells me
> something unexpectedly suboptimal is happening.

Absolutely! The code was building a full list of lines to compare in
memory instead of feeding them to diff as they were produced. The fix
was trivial once the issue was understood. Thanks for the nudge.

-- 
Lunar                                .''`. 
lunar at debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20151222/2186218d/attachment.sig>


More information about the Reproducible-builds mailing list