haskell / haskell/cabal

Reducing the memory footprint of compiling lib:Cabal

Open
#8,074 25 comments 1 reaction 0 assignees View on GitHub
type: enhancement type: performance
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I have been doing some _light_ investigation of what are some of the most consuming modules in `lib:Cabal`, and here are the results based on [time-ghc-modules](https://github.com/codedownio/time-ghc-modules):

![8ahmtcdl](https://user-images.githubusercontent.com/29253044/161116332-901fe72a-fc9b-4914-bdea-f5f0a3ec743e.png)

I don't really know how to interpret this beyond "Distribution.Simple.Setup should be split in a way that enables multi-core compilation of the package". From a quick glance at this module, there aren't any type-level techniques that would be obviously expensive to compile.

Of course there is a certain number of modules in the package, but I'm positive that expensive compilation is not a fatality.

What do you think?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.