You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux and macOS ship with a large number of libraries that we depend on. On Windows, we have to ship those libraries with Servo. One example of this is OpenSSL.
We should try and get this down if we can. Certainly things like replacing freetype with DirectWrite will help. OpenSSL can possibly be replaced with SecureChannel, etc.
It would probably be worthwhile to have a metabug if someone was going to go through the libs we need and figure out what needs to be done.
A few things you can do to start the investigation:
Compare rlib sizes for the dependencies. Mostly we statically link everything. If rlibs are bigger on Windows than on other platforms, then maybe this points us to a compiler issue.
Compare all the DLLs we include with the Servo binary.
Check whether the -msvc target produces similarly sized executables. Perhaps this is just the static linking of all the MSYS2 crap into the binary.
@metajack the only thing blocking us is having buildbot support. I've been focused on Android and have let servo/saltfs#491 rot, unfortunately, but will get back on it once Android is online. Android's a priority because people keep breaking it (it just broke again), so the race of fixing all the submodules and getting buildbot enabled before somebody breaks it again is pretty brutal.
Windows has appveyor on both platforms, and people care more about it :-)
@leeoniya No progress, but at this point we should be able to minimize the set of files that are included in the MSVC MSI. Right now, we drag in all the same binaries on both, even though the MSVC version clearly doesn't need all those GNU bits :-)
Activity
metajack commentedon Nov 11, 2016
Linux and macOS ship with a large number of libraries that we depend on. On Windows, we have to ship those libraries with Servo. One example of this is OpenSSL.
We should try and get this down if we can. Certainly things like replacing freetype with DirectWrite will help. OpenSSL can possibly be replaced with SecureChannel, etc.
It would probably be worthwhile to have a metabug if someone was going to go through the libs we need and figure out what needs to be done.
leeoniya commentedon Nov 11, 2016
A windows OpenSSL binary is a couple megs; probably not worth the effort. Freetype binaries for Windows are ~1MB [1].
That leaves 67MB of "something". It'd be good to see a breakdown of which dependency rabbit holes are heaviest to prioritize efforts.
[1] https://github.com/ubawurinna/freetype-windows-binaries/tree/master/x64
metajack commentedon Nov 11, 2016
A few things you can do to start the investigation:
-msvctarget produces similarly sized executables. Perhaps this is just the static linking of all the MSYS2 crap into the binary.leeoniya commentedon Nov 11, 2016
@metajack thanks for the pointers
lygstate commentedon Nov 14, 2016
The MSVC version are 40MB.
metajack commentedon Nov 14, 2016
So this looks like mingw bloat, which will be going away. That puts linux as the long pole now :)
leeoniya commentedon Nov 14, 2016
are there any working MSVC builds/nightlies to try out or is everything still blocked on #12125?
metajack commentedon Nov 15, 2016
I believe we have fonts working now, so in theory we should switch over to
-msvcnightlies I think. @larsbergstrom is there anything blocking us?lygstate commentedon Nov 15, 2016
msvc build are running and show things
larsbergstrom commentedon Nov 15, 2016
@metajack the only thing blocking us is having buildbot support. I've been focused on Android and have let servo/saltfs#491 rot, unfortunately, but will get back on it once Android is online. Android's a priority because people keep breaking it (it just broke again), so the race of fixing all the submodules and getting buildbot enabled before somebody breaks it again is pretty brutal.
Windows has appveyor on both platforms, and people care more about it :-)
leeoniya commentedon Jan 8, 2017
@larsbergstrom any further progress on this now that servo/saltfs#491 is merged?
larsbergstrom commentedon Jan 12, 2017
@leeoniya No progress, but at this point we should be able to minimize the set of files that are included in the MSVC MSI. Right now, we drag in all the same binaries on both, even though the MSVC version clearly doesn't need all those GNU bits :-)
potocpav commentedon Jan 26, 2017
On x86_64 archlinux, I got 226MB for release, 544MB debug. Trying to investigate.
potocpav commentedon Jan 26, 2017
Using https://github.com/google/bloaty on linux:
Without the debug symbols, the size goes down to 54MiB. Can't compare with Mac/Win since I don't have it :(
atouchet commentedon Jun 22, 2017
Looking at the current numbers the Windows build is now down to 27 MB. The Linux build has increased slightly to 85 MB however.
nox commentedon Oct 7, 2017
Is there anything to do in this issue? Should it be repurposed in an issue that says we should decrease the binary size in general?
Cc @metajack
paulrouget commentedon Oct 7, 2017
Related: #18625
mrobinson commentedon May 1, 2024
New numbers 133 MB on MacOS, 155 MB on Linux, and 133 MB on Windows.
mrobinson commentedon Sep 24, 2026
Servo is about 100MB on all platforms these days. I think we can close this.