----- Original Message -----
From: "Ville Skyttä" ville.skytta@iki.fi To: "Development discussions related to Fedora" devel@lists.fedoraproject.org Sent: Tuesday, September 22, 2015 2:43:33 PM Subject: Re: Fedora 23 cloud image (and, for that matter, minimal anything) bloat
On Tue, Sep 22, 2015 at 3:32 PM, Matej Stuchlik mstuchli@redhat.com wrote:
----- Original Message -----
From: "Ville Skyttä" ville.skytta@iki.fi
Also, be careful with measuring space savings when working with *.pyo. It is a common case that *.pyc and *.pyo are identical, and when they are rpmbuild already hardlinks them.
That's really interesting, I've had no idea:
BTW I just had a peek into some Arch Linux Python 3.5 packages, and it seems they contain *no* identical *.pyc and corresponding *.opt-1.pyc files. This is bad news wrt the hardlinking. I haven't found any *.opt-2.pyc files to play with, so I don't know what's the situation with them.
And sure enough:
% rpm2cpio python3-libs-3.4.3-5.fc24.x86_64.rpm | cpio -idmv 2> /dev/null && du -ch usr/ | tail -n1 31M total
% rpm2cpio python3-libs-3.5.0-1.fc24.x86_64.rpm | cpio -idmv 2> /dev/null && du -ch usr/ | tail -n1 43M total
That's definitely not great.
-- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct