Skip to content

Commit

Permalink
Use -fworker-wrapper-cbv where possible.
Browse files Browse the repository at this point in the history
Also force a newer criterion version for benchmarks by default.
  • Loading branch information
AndreasPK committed May 23, 2024
1 parent c90b4cd commit 964da52
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions dom-lt.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,20 @@ library
build-tools:
extra-libraries:
hs-source-dirs: .
ghc-options: -O2 -funbox-strict-fields

ghc-options:
-O2 -funbox-strict-fields
-ddump-stg-final -ddump-cmm -ddump-to-file -dumpdir /home/andi/repos/dom-lt/dumps

if impl(ghc >= 9.4)
-- Improves perf by 5-9% on my box
ghc-options: -fworker-wrapper-cbv

default-extensions: RankNTypes
build-depends:
base >= 4.3 && < 5
, array
, containers >= 0.4.2.0 && < 0.7
, containers >= 0.7 && < 0.8
exposed-modules:
Data.Graph.Dom,
Data.Graph.Dom.Internal
Expand Down Expand Up @@ -66,8 +74,13 @@ benchmark dom-lt-bench
Main-Is: Main.hs
hs-source-dirs: benchmarks

Build-Depends: base, dom-lt, containers, criterion, deepseq
Build-Depends:
base,
dom-lt,
containers,
-- Technically older still works but we want the µ bugfix
criterion >= 1.5.3.0,
deepseq
default-extensions:

Ghc-Options: -O2 -fno-full-laziness

0 comments on commit 964da52

Please sign in to comment.