Describe the bug
beam_lib:strip additionally compresses the stripped module, which isn't documented. This was previously noticed in #8967 (comment) and independently in Popcorn.
|
Stripped = compress(Stripped0), |
To Reproduce
–
Expected behavior
Either it should be documented or strip function(s) shouldn't compress.
Affected versions
master (5cf5f97)
Additional context
In Popcorn, we transform the standard library apps (stripping, patching) and then create compressed tarballs. Uncompressing .beam's after stripping saved us a lot – stdlib-7.2 tarball is 2,15 MB double-compressed (gzipped beams, brotli .tar) and 1,86 MB compressed using only brotli on .tar (delta: -265 KB).
Describe the bug
beam_lib:stripadditionally compresses the stripped module, which isn't documented. This was previously noticed in #8967 (comment) and independently in Popcorn.otp/lib/stdlib/src/beam_lib.erl
Line 806 in 5cf5f97
To Reproduce
–
Expected behavior
Either it should be documented or
stripfunction(s) shouldn't compress.Affected versions
master (5cf5f97)
Additional context
In Popcorn, we transform the standard library apps (stripping, patching) and then create compressed tarballs. Uncompressing .beam's after stripping saved us a lot –
stdlib-7.2tarball is 2,15 MB double-compressed (gzipped beams, brotli .tar) and 1,86 MB compressed using only brotli on .tar (delta: -265 KB).