Commit 085df06c authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺

Increase `max-backjumps` default from 2000 to 4000

The last time the max-backjumps was increased was back in 2014
(see 0229cd52) as suggested
per #1780, and while `--reorder-goals` might often help as well,
it also often comes at a bigger runtime penalty on average than
doubling the max-backjumps.

This should also address issues such as #5882
parent 7b8e6e5a
......@@ -2050,13 +2050,13 @@ Most users generally won't need these.
--max-backjumps=N
:synopsis: Maximum number of solver backjumps.
:default: 2000
:default: 4000
Maximum number of backjumps (backtracking multiple steps) allowed
while solving. Set -1 to allow unlimited backtracking, and 0 to
disable backtracking completely.
The command line variant of this field is ``--max-backjumps=2000``.
The command line variant of this field is ``--max-backjumps=4000``.
.. cfg-field:: reorder-goals: boolean
--reorder-goals
......
......@@ -1781,7 +1781,7 @@ defaultInstallFlags = InstallFlags {
</> "$arch-$os-$compiler" </> "index.html")
defaultMaxBackjumps :: Int
defaultMaxBackjumps = 2000
defaultMaxBackjumps = 4000
defaultSolver :: PreSolver
defaultSolver = AlwaysModular
......
......@@ -19,6 +19,7 @@
* Init improvements: add flag '--application-dir', and when creating
a library also create a MyLib.hs module. (#5740)
* Add support for generating test-suite via cabal init. (#5761)
* Increase `max-backjumps` default from 2000 to 4000.
2.4.1.0 Mikhail Glushenkov <mikhail.glushenkov@gmail.com> November 2018
* Add message to alert user to potential package casing errors. (#5635)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment