commercialhaskell / commercialhaskell/stack

Profiling build defaults

Open
#4,032 17 comments 20 reactions 0 assignees View on GitHub
component: build type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

@bitemyapp's Makefiles are a treasure trove of build tips. [Here's a trick for profiling builds](https://github.com/fpco/badgers/blob/master/Makefile#L9-L13):

```
stack build --profile --work-dir .stack-work-profiling
```

This tremendously improves build caching, at the expense of disk space.

Can this be a default behavior, or at least, enabled via a global config flag or similar? It is soul crushing to have to rebuild all of the deps for a large project for profiling, and rebuild them *again* for normal mode.

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.