Page 1 of 1

libcef.so size increase of almost 40%

PostPosted: Mon Sep 24, 2018 1:59 pm
by Mayhew
I was looking into updating from 3.3396 to 3.3497 and noticed a large size increase in libcef.so on Linux.

cef_binary_3.3396.1785.ga27bbfa_linux64
debug/libcef.so size 589,684,400 bytes
release/libcef.so size 518,562,224 bytes

cef_binary_3.3497.1833.g13f506f_linux64
debug/libcef.so size 831,026,232 bytes (+41%)
release/libcef.so size 707,683,368 bytes (+36%)

There doesn't seem to be a similar size increase in Chrome itself. Is there any reason for this increase in CEF itself?

Re: libcef.so size increase of almost 40%

PostPosted: Mon Sep 24, 2018 2:29 pm
by magreenblatt
Are you stripping symbols from the binaries with the 'strip' tool?

Re: libcef.so size increase of almost 40%

PostPosted: Mon Sep 24, 2018 2:35 pm
by Mayhew
Are you stripping symbols from the binaries with the 'strip' tool?


No, this is just from the Spotify builds, not from my local builds. Maybe the Spotify builds suddenly stopped doing this?

Re: libcef.so size increase of almost 40%

PostPosted: Mon Sep 24, 2018 2:55 pm
by magreenblatt
Spotify builds have never been stripped. It's possible that the quantity of the debug info has changed. I suggest stripping binaries of both versions and comparing the results. There should be some minor increase with the newer binaries due to increased features over time. You can reference the % increase in other platform binaries (win/mac) for sanity-checking/comparison purposes.

Re: libcef.so size increase of almost 40%

PostPosted: Mon Sep 24, 2018 3:39 pm
by Mayhew
Is the strip tool used by the automated cef build process? I ask because I'm trying to determine the best settings to use.

Re: libcef.so size increase of almost 40%

PostPosted: Tue Sep 25, 2018 4:56 am
by magreenblatt
No, you should run the strip tool as part of your application packaging/distribution. Otherwise, you probably want the symbols for debugging purposes.