PackageCompiler.jl icon indicating copy to clipboard operation
PackageCompiler.jl copied to clipboard

too much stuff generated by default

Open JeffBezanson opened this issue 3 years ago • 2 comments

If I generate a simple app, lib/julia contains

-rw-rw-r-- 1 jeff jeff  17734957 Sep 20 16:07 corecompiler.ji
-rw-rw-r-- 1 jeff jeff 234258408 Sep 20 16:07 sys-debug-o.a
-rwxrwxr-x 1 jeff jeff 201407816 Sep 20 16:07 sys-debug.so
-rw-rw-r-- 1 jeff jeff 106505394 Sep 20 16:07 sys.ji
-rw-rw-r-- 1 jeff jeff 211870856 Sep 20 16:07 sys-o.a
-rwxrwxr-x 1 jeff jeff  72735752 Sep 20 16:18 sys.so

Now, many rightly complain that the 70MB sys.so is too big, but this is actually not too bad by our standards! However this is somewhat undermined by the presence of 730MB of extra stuff that is not needed to run the app. The other files should not be included by default. The .ji and .a files can always be deleted, and the debug image should be optional. Other low-hanging fruit would be to delete .a files in lib/ as well, which removes another ~180MB.

JeffBezanson avatar Sep 22 '22 02:09 JeffBezanson

PackageCompiler is not very smart when you use a local build that includes a bunch of extra stuff that is not present in a release build that your download. But we can teach it, yeah

KristofferC avatar Sep 22 '22 04:09 KristofferC

Was this indeed fixed by #823, and should be closed?

Octogonapus avatar Jul 27 '23 19:07 Octogonapus