Slow dependency resolution using solver option `--reorder-goals`
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
**Describe the bug**
Dependency resolution is very slow on Windows. For example [here](https://github.com/input-output-hk/cardano-node/runs/4052457976?check_suite_focus=true), it is taking `37` minutes:

**To Reproduce**
Steps to reproduce the behavior:
On Windows, install `msys2`. Then in a bash shell:
```
git clone https://github.com/input-output-hk/libsodium
cd libsodium
git checkout 66f017f16633f2060db25e17c170c2afa0f2a8a1
./configure
make
make install
cd -
```
Then:
```
git clone git@github.com:input-output-hk/cardano-node.git
cd cardano-node
cabal build all --dry-run
```
**Expected behavior**
A clear and concise description of what you expected to happen.
**System information**
- Operating system: Windows
- `cabal-3.6.2.0`, `ghc-8.10.4`
**Additional context**
N/A
Contributor guide
Assessment
This issue has not been assessed yet.