haskell / docker-haskell

MIT License
63 stars 37 forks source link

Install `-prof` packages? #9

Closed phadej closed 2 years ago

phadej commented 5 years ago

It would make sense to have them in full images, but omit from -slim images.

I just run into a use case where I need -prof stuff.

opinions, @hvr @psftw?

psftw commented 5 years ago

Sounds reasonable, though if -prof is significantly bigger, it may make more sense to add a variant instead? I think we are stuck with quite large images due to GHC + dependencies, so the value of a -slim is questionable to me, but I have not looked at the numbers recently.

phadej commented 5 years ago

I think we can afford -prof in normal image and -slim can stay slim. That would be good for consistency with other official images. Our current image is what other call "slim": no extras.

AlistairB commented 2 years ago

I'm planning to implement this suggestion. I have seen people expect it recently and I think that is fairly reasonable. So..

The profiling files take the image from 1.73GB -> 2.46GB (740mb) for 9.2 on Debian buster. Not the worst I guess. I think minimising image size is overrated.

I will ponder this more. On the flip side there has been little interest in including profiling libs.. hmm

AlistairB commented 2 years ago

Decided to just pull the trigger as described above.