You are not logged in.

#1 2013-02-20 15:23:24

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Firefox 19 install size significantly smaller?

Targets (1): firefox-19.0-1

Total Installed Size:   32.52 MiB
Net Upgrade Size:       -14.89 MiB

I was really surprised to see the install size change that much?  Has anyone heard what Firefox did to achieve this?  I would have thought the size would have increased with the addition of a native PDF reader.


I laugh, yet the joke is on me

Offline

#2 2013-02-20 16:07:44

headkase
Member
Registered: 2011-12-06
Posts: 1,975

Re: Firefox 19 install size significantly smaller?

Maybe the devs accidentally built it with debug options enabled last time.. wink

I don't know, got it and it works for me so meh. smile

Offline

#3 2013-02-20 16:10:30

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Firefox 19 install size significantly smaller?

Looking at the sources, there is a small increase in size, in fact.

https://ftp.mozilla.org/pub/mozilla.org … .2/source/

https://ftp.mozilla.org/pub/mozilla.org … .0/source/

Looking at the PKGBUILDS, there is no difference apart from the version bump.

Offline

#4 2013-02-20 16:11:39

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: Firefox 19 install size significantly smaller?

I'm confused by that too.

If I extract the two packages manually, into separate directories, and compare the size with du, 19.0 is slightly bigger than 18.0.2; but pacman reports that firefox is taking up less space than it should be.

/tmp/firefox$ tar -x -C ./firefox18 -f /var/cache/pacman/pkg/firefox-18.0.2-1-x86_64.pkg.tar.xz 2>/dev/null
/tmp/firefox$ tar -x -C ./firefox19 -f /var/cache/pacman/pkg/firefox-19.0-1-x86_64.pkg.tar.xz 2>/dev/null

/tmp/firefox$ du -xd 0 firefox1*       
48532   firefox18
48648   firefox19

/tmp/firefox$ pacman -Qi firefox | grep Size
Installed Size : 33296.00 KiB

Weird.

Last edited by WorMzy (2013-02-20 16:12:33)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2013-02-20 16:32:00

SidK
Member
Registered: 2011-03-03
Posts: 116

Re: Firefox 19 install size significantly smaller?

Hmm... Puzzling. Looking at the git commits it was just a version bump, no changes in build process. Let's see if the package file is larger:

sid ~ > du -h /var/cache/pacman/pkg/firefox-*
16M	/var/cache/pacman/pkg/firefox-16.0.1-1-x86_64.pkg.tar.xz
16M	/var/cache/pacman/pkg/firefox-16.0.2-1-x86_64.pkg.tar.xz
18M	/var/cache/pacman/pkg/firefox-17.0-1-x86_64.pkg.tar.xz
18M	/var/cache/pacman/pkg/firefox-17.0.1-1-x86_64.pkg.tar.xz
19M	/var/cache/pacman/pkg/firefox-18.0-1-x86_64.pkg.tar.xz
19M	/var/cache/pacman/pkg/firefox-18.0-2-x86_64.pkg.tar.xz
19M	/var/cache/pacman/pkg/firefox-18.0.1-1-x86_64.pkg.tar.xz
19M	/var/cache/pacman/pkg/firefox-18.0.2-1-x86_64.pkg.tar.xz
19M	/var/cache/pacman/pkg/firefox-19.0-1-x86_64.pkg.tar.xz

Nope. OK, but that's compressed, what's the installed size of those packages?

sid ~ > pacman -Qi -p /var/cache/pacman/pkg/firefox-* | awk '/^Version/ {printf "%s - ", $3} /^Installed Size/ {print $4 $5} '
16.0.1-1 - 41796.00KiB
16.0.2-1 - 41800.00KiB
17.0-1 - 45172.00KiB
17.0.1-1 - 45152.00KiB
18.0-1 - 48544.00KiB
18.0-2 - 48540.00KiB
18.0.1-1 - 48532.00KiB
18.0.2-1 - 48540.00KiB
19.0-1 - 33296.00KiB

OK. Something did change massively. Let's see which file changed sizes:

(with 19 installed)
 ~ > pacman -Qlq firefox | grep -vE '/$' | sort | xargs du -h > /tmp/19
(with 18.0.2 installed)
 ~ > pacman -Qlq firefox | grep -vE '/$' | sort | xargs du -h > /tmp/18
sid tmp > diff 18 19
3c3
< 48K	/usr/lib/firefox/blocklist.xml
---
> 52K	/usr/lib/firefox/blocklist.xml
25,26c25,26
< 108K	/usr/lib/firefox/mozilla-xremote-client
< 8.1M	/usr/lib/firefox/omni.ja
---
> 112K	/usr/lib/firefox/mozilla-xremote-client
> 8.3M	/usr/lib/firefox/omni.ja

Only about a 200k diff there. I can't see what's causing this.

I'm still lost

Offline

#6 2013-02-20 16:36:32

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Firefox 19 install size significantly smaller?

Sounds like a bug in makepkg. Something caused it to calculate the installed size wrong and put that into the .PKGINFO

Offline

#7 2013-02-20 16:37:48

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Firefox 19 install size significantly smaller?

I used firefox-aurora from heftig's repo (http://pkgbuild.com/~heftig/repo/$arch) for a long time and such huge size jumps happened with every update, although there hasn't changed much, obviously. So I think this is a bug in pacman / makepkg!

Last edited by Army (2013-02-20 16:39:17)

Offline

#8 2013-02-20 23:02:58

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: Firefox 19 install size significantly smaller?

Ah, so the install size is reading off the PKGINFO and not the actual install size?  I'll watch for the next version bump and see if it corrects itself.


I laugh, yet the joke is on me

Offline

#9 2013-02-21 06:58:59

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Firefox 19 install size significantly smaller?

Name     Old Version  New Version  Net Change  Download Size

firefox  18.0.2-1     19.0-1       0.63 MiB        18.53 MiB

Looks like the PKGINFO is fine for the i686 version.

Last edited by x33a (2013-02-21 08:13:38)

Offline

#10 2013-02-21 07:15:17

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Firefox 19 install size significantly smaller?

the sad clown wrote:

Ah, so the install size is reading off the PKGINFO and not the actual install size?  I'll watch for the next version bump and see if it corrects itself.

If you want the real size you can use this:

>> (echo -n "(" ; stat  --printf "%s + " $(pacman -Qql firefox | grep -v '/$') ; echo "0 ) / 1024 / 1024") | bc
47

Last edited by progandy (2013-02-21 07:20:30)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB