Skip to content

Binary builds from RSPM blow up image size #340

@benz0li

Description

@benz0li

Reason: The dynamic libraries are not stripped.

rocker/tidyverse (Ubuntu 20.04, RSPM, binary install):

root@89f0a27ec269:/usr/local/lib/R/site-library/vroom/libs# du -h vroom.so 
24M	vroom.so
root@89f0a27ec269:/usr/local/lib/R/site-library/vroom/libs# file vroom.so
vroom.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=88a2384029c2331d1d8f91274db23fb30edb9668, with debug_info, not stripped

custom build (Debian 11, CRAN, source install):

root@bfc0aad5ae64:/usr/local/lib/R/site-library/vroom/libs# du -h vroom.so 
848K	vroom.so
root@bfc0aad5ae64:/usr/local/lib/R/site-library/vroom/libs# file vroom.so
vroom.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=f6d17acb2cf4f8e75af5e97dcb7a17297ff5f9ee, stripped

Total size of /usr/local/lib/R/site-library:

  • rocker/tidyverse: 732 MB
  • custom build: 198 MB

@eddelbuettel Can you think of a reason why the dynamic libraries of the RSPM binaries are not stripped?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions