Skip to content

Commit 8ac0fb2

Browse files
authored
Use -fspecialize-aggressively to improve performance by 30% on ACME build (purescript#4584)
* Use -fspecialize-aggressively to improve performance * add fspecialize to cabal project
1 parent 9dd761a commit 8ac0fb2

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

cabal.project

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ packages:
22
purescript.cabal
33

44
source-repository-package
5-
type: git
6-
location: https://github.com/purescript/cheapskate.git
7-
tag: 633c69024e061ad956f1aecfc137fb99a7a7a20b
5+
type: git
6+
location: https://github.com/purescript/cheapskate.git
7+
tag: 633c69024e061ad956f1aecfc137fb99a7a7a20b
8+
9+
package purescript
10+
ghc-options: -fspecialize-aggressively -fexpose-all-unfoldings

stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ packages:
66
- '.'
77
ghc-options:
88
# Build with advanced optimizations enabled by default
9-
"$locals": -O2 -Werror
9+
"$locals": -O2 -Werror -fspecialize-aggressively -fexpose-all-unfoldings
1010
extra-deps:
1111
# As of 2021-11-08, the latest release of `language-javascript` is 0.7.1.0,
1212
# but it has a problem with parsing the `async` keyword. It doesn't allow

0 commit comments

Comments
 (0)