I think that this:
musl’s dynamic loader loads libraries permanently for the lifetime of the process, until it exits or calls exec.
dlcloseis a no-op. This is very different from glibc’s approach of reference counting libraries and unloading them when the count reaches zero.
May be problematic WRT some NIF code.
But honestly I do not think that the difference is meaningful:
- Glibc is often slightly faster than Musl
- Difference in downloads time is IMHO negligible, especially when we take into account layers sharing in Docker
- You would probably still would need to install Bash in the target container, which mean that the difference in raw base image sizes would be negligible






















